Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CABEÇALHO
- Arquivo: LISTA 04 - Exercicio 2.c
- Objetivo: Exibir uma sequencia de numeros de trás para frente.
- Autor(a): Ramon Borges
- */
- #include <stdio.h>
- #define MAX 10
- int main()
- {
- int i, numeros[MAX];
- for(i = 0; i < MAX; i++)
- {
- printf("\nDigite um numero: ");
- scanf("%d", &numeros[i]);
- }
- for(i = MAX-1; i >= 0; i--)
- printf("%d ", numeros[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment