Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CABEÇALHO
- Arquivo: LISTA 05 - Exercicio 5.c
- Objetivo: Exibir na ordem inversa alguns números que foram digitados.
- Autor(a): Ramon Borges
- */
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char nomes [10][40], i;
- for(i = 0; i < 10; i++)
- {
- printf("Informe o %d nome: ", i+1);
- gets(nomes[i]);
- }
- for(i = 9; i >=0; i--)
- printf("\n %s", nomes[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment