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