Untitled

 avatar
user_5811307
plain_text
8 months ago
364 B
1
Indexable
Never
#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;
}
Leave a Comment