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