Untitled
user_5811307
plain_text
2 years ago
565 B
7
Indexable
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
void gg(string& fam, string& ime, string& otchestvo, string& fio)
{
if(129 <= fam[0] <= 154)
{
fam[0]-=32;
}
if(129 <= ime[0] <= 154)
{
ime[0] -= 32;
}
if(129 <= otchestvo[0] <= 154)
{
otchestvo[0] -= 32;
}
fio = fam + " " + ime[0]+ "." + otchestvo[0] + ".";
}
int main()
{
string fam, ime, ochestvo, fio ="";
cin >> fam >> ime >> ochestvo;
gg(fam, ime, ochestvo, fio);
cout << fio;
}
Editor is loading...
Leave a Comment