Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char st[50],st1[50];
- gets(st);
- int i,l;
- l=strlen(st);
- for(i=0;i<l;i++)
- {
- if(st[i]>=97 && st[i]<=122)
- {
- st1[i]=st[i]-32;
- }
- else
- {
- st1[i]=st[i];
- }
- }
- st1[i]='\0';
- printf("%s",&st1);
- return 0;
- }
Add Comment
Please, Sign In to add comment