# ITSA E-tutor 程式碼參考(陣列1) --- [C_AR01-易] **一維陣列反轉 I** **C** ```c= #include <stdio.h> int main(void) { int arr[100]; int i=0; int a; while(scanf("%d ",&a)!=EOF) { arr[i++]=a; } int j; for(j=i-1;j>=0;j--) { if(j==i-1) printf("%d",arr[j]); else printf(" %d",arr[j]); } printf("\n"); return 0; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up