Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.   char slovo;
  10.  
  11.   cin>>slovo;
  12.  
  13.   for(int i=0; i<3; i++)
  14.     {
  15.         slovo+=1;
  16.         if (slovo>=65 && slovo<=90)
  17.             cout<<slovo<<endl;
  18.            
  19.         else
  20.         {
  21.             slovo=65;
  22.             cout<<slovo<<endl;
  23.         }
  24.     }
  25.    
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement