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. for(i = 0; s[i] != '\0'; i++) {
  9. if(s[i] == '1') {
  10. s[i] = 'I';
  11. }
  12. }
  13. printf("%s\n", s);
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5272KB
stdin
DAU1WYE1ywb
stdout
DAU1WYE1ywb
  -> DAUIWYEIywb