Untitled

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

using namespace std;

void big(string& f) {
	if (f[0] >= 97 || f[0] <= 122) {
		f[0] -= 32;
	}
}

void biggest(string f,string i,string o,string& q) {
	big(f);
	big(i);
	big(o);
	q += f;
	q += ' ';
	q += i[0];
	q += '.';
	q += o[0];
	q += '.';
	cout << q;
}

int main()
{
string f, i, o,q;
	q = "";
	cin >> f >> i >> o;
	biggest(f, i, o, q);
}
Leave a Comment