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>
- int main(){
- char nome[500];
- printf("digite seu nome:\n");
- gets(nome);
- int i;
- nome[0]=toupper(nome[0]);
- for(i=1; nome[i]!='\0';i++){
- nome[i]= toupper(nome[i]);
- }
- printf("\n\n");
- printf("Ola ,veja como fica seu nome transformado:\n\%s",nome);
- printf("\n\n");
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment