Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i;
- char name[40];
- printf("Entre com seu nome :\n");
- gets(name);
- for (i = 0; i < strlen(name); i++)
- {
- if (name[i] >= 'a' && name[i] <= 'z')
- {
- printf("%c",name[i]-32);
- }
- else
- printf("%c",name[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment