#include<stdio.h>
char strupr(char s[50]);

main()
{ char a[50];
  printf("Enter a string\n");
  gets(a);
  strupr(a);
  printf("The Converted string is\n");
  puts(a);

}
char strupr(char s[50])
 { 
  int i=0; 
 while(s[i]!='\0') 
 { 
  if(s[i]>=97&&s[i]<=122) 
 { s[i]=s[i]-32; 
  } 
  i++; 
  } 
 return s;
}
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter a string Work Hard The Converted string is WORK HARD