#include <iostream>
using namespace std;
void stringToUpper(string &s)
{
for(unsigned int l = 0; l < s.length(); l++)
s[l] = toupper(s[l]);
}
int main()
cout << "Enter two letters: ";
string a;
cin >> a;
stringToUpper(a);
cout << "Initials: " << a[0] << "."<< a[1] << "." <<endl;
return 0;
#include <iostream>
using namespace std;
void stringToUpper(string &s)
{
for(unsigned int l = 0; l < s.length(); l++)
{
s[l] = toupper(s[l]);
}
}
int main()
{
cout << "Enter two letters: ";
string a;
cin >> a;
stringToUpper(a);
cout << "Initials: " << a[0] << "."<< a[1] << "." <<endl;
return 0;
}