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