nikolas_serafini

Lista 5 - Exercício 5

Jun 30th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.   int i;
  6.   char names[10][40];
  7.  
  8.   for (i = 0; i < 10; i++)
  9.   {
  10.     printf("Entre com o nome :\n");
  11.     gets(names[i]);
  12.   }
  13.   printf("Nomes invertidos :\n\n");
  14.   for (i = 9; i >= 0; i--)
  15.   {
  16.     puts(names[i]);
  17.   }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment