fork download
  1. #include <stdio.h>
  2.  
  3. void myStrcpy(char s[], char t[]){
  4. int i;
  5.  
  6. for(i = 0; s[i] != '\0'; i++){
  7. if(s[i] == '1')
  8. s[i] = 'I';
  9.  
  10. t[i] = s[i];
  11. }
  12.  
  13. t[i] = '\0';
  14. }
  15.  
  16. int main(void) {
  17. char s[100];
  18. char t[100];
  19.  
  20. scanf("%s", s);
  21.  
  22. printf("%s\n -> ", s);
  23.  
  24. myStrcpy(s, t);
  25.  
  26. printf("%s\n", t);
  27.  
  28. return 0;
  29. }
Success #stdin #stdout 0.01s 5328KB
stdin
1NFORMAT1ON
stdout
1NFORMAT1ON
  -> INFORMATION