Star Patterns
C program to convert lowercase to uppercase string using strupr().
C program to convert lowercase to uppercase string using strupr().
#include <stdio.h> #include <string.h> #define MAX 100 int main() { char text[MAX]; printf("Enter any string : "); gets(text); strupr(text); printf("\n to convert lower case to Uppercase string : %s", text); return 0; }
Output:
Enter any string : computer to convert lower case to Uppercase string : COMPUTER