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