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