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