FranciscoSoccol

Lista 04 - Exercicio 31

Jul 7th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. //Após a entrada do nome do usuário, exiba-o em formato vertical.
  2. #include<stdio.h>
  3. int main()
  4. {
  5.     char nome[50];
  6.     int i;
  7.     printf("Digite o nome: ");
  8.     gets(nome);
  9.     for(i=0;nome[i]!='\0';i++){//exibino o nome
  10.         printf("%c", nome[i]);
  11.         printf("\n");}
  12.     getch();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment