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