Advertisement
MelikbekyanAshot

Untitled

Dec 15th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     setlocale(LC_ALL, "rus");
  7.     string input = "Melikbekyan Ashot Arsenovich", output = "";
  8.     /*cout << "Введите ФИО: ";
  9.     cin >> input;*/
  10.     for (int i = 0; i < input.length(); i++)
  11.     {
  12.         if (input[i] >= 'A' && input[i] <= 'Z')
  13.         {
  14.             output = output + input[i] + ".";
  15.         }
  16.     }
  17.     cout << "Инициалы: " << output << endl;
  18.     system("pause");
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement