#include <stdio.h>
#include<string.h>
int main() {
    char s[100];
    int i;
    printf("\nEnter a string :");
    gets(s);

    for(i=0; s[i]!='\0';i++){
        if(s[i]>'a'&& s[i] <='z'){
            s[i]=s[i]-32;
        }
    }
    printf("nString in Uper Case=%s",s);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: