Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- #include<ctype.h>
- #define LEN 50
- void uppercase(char *a);
- int main()
- {
- char t[LEN];
- gets(t);
- uppercase(t);
- return 0;
- }
- void uppercase(char *a)
- {
- int i;
- while (a[i])
- {
- if (isalpha(a[i])= 0)
- putchar(a[i]);
- else
- putchar(toupper(a[i]));
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement