Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "rus");
- string input = "Melikbekyan Ashot Arsenovich", output = "";
- /*cout << "Введите ФИО: ";
- cin >> input;*/
- for (int i = 0; i < input.length(); i++)
- {
- if (input[i] >= 'A' && input[i] <= 'Z')
- {
- output = output + input[i] + ".";
- }
- }
- cout << "Инициалы: " << output << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement