ramontricolor12

LISTA 05 - Exercício 05

Jul 8th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. /* CABEÇALHO
  2.    Arquivo: LISTA 05 - Exercicio 5.c
  3.    Objetivo: Exibir na ordem inversa alguns números que foram digitados.
  4.    Autor(a): Ramon Borges
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. int main()
  10. {
  11.     char nomes [10][40], i;
  12.     for(i = 0; i < 10; i++)
  13.     {
  14.         printf("Informe o %d nome: ", i+1);
  15.         gets(nomes[i]);
  16.     }
  17.  
  18.     for(i = 9; i >=0; i--)
  19.         printf("\n %s", nomes[i]);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment