You are viewing a single comment's thread. Return to all comments →
C++ Solution
int main() { string num; cin >> num; int shift; cin >> shift; for(char a : num) cout << (((char)(a+shift)>'9')? (char)(a+shift - 10): (char)(a+shift)); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Security Key Spaces
You are viewing a single comment's thread. Return to all comments →
C++ Solution