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