From 2b505f7665960bd8066c8b856700a0efefae7780 Mon Sep 17 00:00:00 2001 From: Bikram kharal <93068505+themarkib0x01@users.noreply.github.com> Date: Sun, 24 Oct 2021 11:51:48 +0545 Subject: [PATCH] Create program.c --- C/program-84/program.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 C/program-84/program.c 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; +}