Advertisement
Ychenik

Увеличение букв

Mar 23rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char str[1000];
  8.     int i = 0;
  9.     cin.getline(str, 1000);
  10.     while(str[i] != 0)
  11.     {
  12.         if(str[i] >= 'a' && str[i] <= 'z')
  13.         {
  14.            str[i] = str[i] - 32;
  15.         }
  16.         i++;
  17.     }
  18.     i = 0;
  19.     while(str[i] != 0)
  20.     {
  21.         cout << str[i];
  22.         i++;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement