fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i;
  5. char s[100];
  6.  
  7. scanf("%s", s);
  8. printf("%s\n -> ", s);
  9.  
  10. for (i = 0; s[i] != '\0'; i++) {
  11. if (s[i] == '1') {
  12. s[i] = 'I';
  13. }
  14. }
  15.  
  16. printf("%s\n", s);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5304KB
stdin
1nfomat1on
stdout
1nfomat1on
  -> InfomatIon