C Program To Convert A Lowercase Alphabet To Uppercase Alphabet Or Vice-Versa Using If/Else Statements

 #include<stdio.h>
 #include<string.h>
 int main()
 {
   char s[100];
   // take input
   printf("Enter a string: ");
   scanf("%[^\n]",s);
   // display output
   printf("In Upper Case:\n");
   puts(strupr(s));
   return 0;
 }

Output:

Enter a string: chase learning
In Upper Case:
CHASE LEARNING

Leave a Comment