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