Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- #include <string>
- using namespace std;
- int main() {
- string strang = " ";
- cin >> strang;
- for(int i = 0; i < strang.length(); i++)
- {
- char c = strang.at(i);
- int k = ((c - '0')+1) % 10;
- cout << k;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement