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