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