You are viewing a single comment's thread. Return to all comments →
**My code in C.
int main(){
int n; scanf("%d",&n); int arr[n]; for(int i=0;i<n;i++){ scanf("%d",&arr[i]); } int arr2[n]; int count=0; for(int i=n-1;i>=0;i--){ arr2[count]=arr[i]; count++; } for(int i=0;i<n;i++){ printf("%d ",arr2[i]); } return 0;
}**
Seems like cookies are disabled on this browser, please enable them to open this website
Day 7: Arrays
You are viewing a single comment's thread. Return to all comments →
**My code in C.
int main(){
}**