Untitled
user_5811307
plain_text
2 years ago
364 B
7
Indexable
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
void gg(string& fam, string& ime, string& otchestvo, string& fio)
{
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