diff --git a/C/program-84/program.c b/C/program-84/program.c new file mode 100644 index 0000000..914722d --- /dev/null +++ b/C/program-84/program.c @@ -0,0 +1,16 @@ +#include +int main(){ +char str[100]; +int i=0; +printf("Enter any string:"); +gets(str); +//converting to uppercase +while(str[i]!= '\0'){ +if(str[i]>=97&&str[i]<=122){ + str[i]=str[i]-32; +} +i++; +} +printf("\nThe converted string is:%s", str); +return 0; +}