Advertisement
Divyansh_Chourey

upper_to_lowerCase

Mar 10th, 2024
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | Source Code | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.     char ch;
  5.     printf("Enter any character in upper case: ");
  6.     scanf("%c", &ch);
  7.     if((ch<65)||(ch>90)){
  8.         printf("Please enter valid upper case alphabet only!");
  9.     }
  10.     else{
  11.         printf("%c in lower case is: %c", ch, ch+32);
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement