Skip to content

Commit

Permalink
add 6_A.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Utsubo256 committed Jun 10, 2023
1 parent 2222ed2 commit 4eac97d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ITP1/6_A.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <stdio.h>

int main(void) {
int n, a[100] ,i;
scanf("%d", &n);

for (i = 0; i < n; i++) scanf("%d", &a[i]);

for (i = n-1; i >= 0; i--) {
printf("%d", a[i]);
if (i != 0) printf(" ");
else printf("\n");
}

return 0;
}

0 comments on commit 4eac97d

Please sign in to comment.