Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
386 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <vector>


void Fio(std::string name, std::string surename,std::string batek,std::string &s) {
    
    s = surename + ' ' + name[0] + '.' + batek[0] + '.';
}

int main()
{
    std::string name, surename, batek,s = "";

    std::cin >> surename >> name >> batek;
    Fio(name, surename, batek,s);
    std::cout << s;
}

Leave a Comment