fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4. char d[10],f[10];
  5. int i;
  6.  
  7. i=0;
  8. scanf("%s",d);
  9. while(d[i]!=0){
  10. f[i]=d[i]-32;
  11. i=i+1;
  12. }
  13. f[i]=0;
  14. printf("d=%s\n",d);
  15. printf("f=%s\n",f);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
d=nU
f=N5