Bekzhan

Untitled

Jan 26th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <windows.h>
  4. #include <cstdio>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     setlocale(LC_ALL, "RUS");
  11.    
  12.     freopen("in", "r", stdin);
  13.     freopen("out", "w", stdout);
  14.    
  15.     char s[100];
  16.  
  17.     scanf("%s", &s);
  18.  
  19.     for (int j = 0; j < 32; j++)
  20.         {
  21.             for (int i = 0; i < (int)strlen(s); i++)
  22.                 {
  23.                     s[i]++;
  24.                     if (s[i] == 0)
  25.                         s[i] = 'а';
  26.                 }
  27.  
  28.             cout << s << endl;
  29.         }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment