Advertisement
hmcristovao

Lista 04 - exercício 02

May 17th, 2012
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #define QTDE 20
  3. int main() {
  4.    int num[QTDE], i;
  5.    for(i=0; i<QTDE; i++) {
  6.       printf("Qual o numero %d?", i+1);
  7.       scanf("%d", &num[i]);
  8.    }
  9.    for(i=QTDE-1; i>=0; i--)
  10.       printf("\n%d", num[i]);
  11.    return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement