fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char d[10], f[10];
  5. int i;
  6.  
  7. i = 0;
  8. scanf("%s", d);
  9.  
  10. while (d[i] != 0) {
  11. f[i] = d[i] + 33;
  12. i++;
  13. }
  14. f[i] = 0;
  15.  
  16. printf("%s\n", d);
  17. printf("%s\n", f);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5280KB
stdin
NMKHMD
stdout
NMKHMD
online