You are viewing a single comment's thread. Return to all comments →
Easier way is to use simple array
int array[n+1]; //INPUT for(i = 1 to n) cin>>array[i]; //OUTPUT for(i = 1 to n) cout<<array[array[i]];
Seems like cookies are disabled on this browser, please enable them to open this website
Security Permutations
You are viewing a single comment's thread. Return to all comments →
Easier way is to use simple array