Advertisement
Guest User

Answer

a guest
Mar 1st, 2016
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. #include <string>
  7. using namespace std;
  8.  
  9. int main() {
  10.     string strang = " ";
  11.     cin >> strang;
  12.    for(int i = 0; i < strang.length(); i++)
  13.    {
  14.    char c = strang.at(i);
  15.    int k = ((c - '0')+1) % 10;
  16.    cout << k;
  17. }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement