You are viewing a single comment's thread. Return to all comments →
int main() {
int x[1000]; int i , j , k ; scanf("%d",&i); for ( j=0 ; j for ( k=j-1 ; k>=0 ; k-- ) { printf("%d\t",x[k]); }
return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Array Reversal
You are viewing a single comment's thread. Return to all comments →
include
include
int main() {
int x[1000]; int i , j , k ; scanf("%d",&i); for ( j=0 ; j for ( k=j-1 ; k>=0 ; k-- ) { printf("%d\t",x[k]); }
return 0; }