fork download
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.  
  5. char ch;
  6.  
  7. printf("Enter your letter that you need to convert into upper case: ");
  8. scanf("%c",&ch);
  9.  
  10.  
  11. if(ch>=97 && ch<=122) // if(ch>='a' && ch<='z')
  12. {
  13. ch = ch - 32;
  14. printf("%c",ch);
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
Enter your letter that you need to convert into upper case: