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