Create BalikDaftar.c

master
Muhammad Daffa 2020-04-10 16:10:44 +07:00 committed by GitHub
parent c71864d03f
commit 19758af46f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
09. Array/BalikDaftar.c Normal file
View File

@ -0,0 +1,13 @@
#include <stdio.h>
int main() {
int i = 0, a[1000];
while (scanf("%d",&a[i]) != EOF ) {
i = i + 1;
continue;
}
for(i=i-1;i>=0;i--) {
printf("%d\n",a[i]);
}
}