fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=0;
  5. char s[100];
  6. scanf("%s",s);
  7. printf("%s\n -> ",s);
  8.  
  9. //ここを編集する
  10. char ture_char='I';
  11. char false_char='1';
  12.  
  13.  
  14. while(s[i] !='\0'){
  15. if(s[i]==false_char){
  16. s[i]=ture_char;
  17. }
  18. i++;
  19. }
  20. i=0;
  21.  
  22. printf("%s\n",s);
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 5312KB
stdin
1NFORMAT1ON
stdout
1NFORMAT1ON
  -> INFORMATION