ramontricolor12

LISTA 04 - Exercício 02

Jul 8th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. /* CABEÇALHO
  2.    Arquivo: LISTA 04 - Exercicio 2.c
  3.    Objetivo: Exibir uma sequencia de numeros de trás para frente.
  4.    Autor(a): Ramon Borges
  5.  */
  6.  
  7.  #include <stdio.h>
  8.  #define MAX 10
  9.  int main()
  10.  {
  11.      int i, numeros[MAX];
  12.      for(i = 0; i < MAX; i++)
  13.      {
  14.          printf("\nDigite um numero: ");
  15.          scanf("%d", &numeros[i]);
  16.      }
  17.      for(i = MAX-1; i >= 0; i--)
  18.          printf("%d ", numeros[i]);
  19.      return 0;
  20.  }
Advertisement
Add Comment
Please, Sign In to add comment