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. //ここを編集する
  9. i = 0;
  10. while (s[i] != '\0'){
  11. if (s[i] == '1')
  12. s[i] = 'I';
  13. i++;
  14. }
  15. //
  16. printf("%s\n",s);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5288KB
stdin
1NFORMAT1ON
stdout
1NFORMAT1ON
  -> INFORMATION