Reginaldojs

exercicio 21,lista 4

Jun 17th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4. #include<ctype.h>
  5. int main(){
  6.     char nome[500];
  7.     printf("digite seu nome:\n");
  8.     gets(nome);
  9.     int i;
  10.     nome[0]=toupper(nome[0]);
  11.     for(i=1; nome[i]!='\0';i++){
  12.            nome[i]= toupper(nome[i]);
  13.     }
  14.     printf("\n\n");
  15.     printf("Ola ,veja como fica seu nome transformado:\n\%s",nome);
  16.     printf("\n\n");
  17.     system ("pause");
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment