fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. char c; cin >> c;
  7.  
  8. // Process -> Output
  9. if (c == 'z') cout << 'a';
  10. else cout << (char)(c + 1);
  11. }
Success #stdin #stdout 0.01s 5288KB
stdin
z
stdout
a