Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- int a[10] , i =0 , j , holder;
- while( i < 10){
- cin>>a[i++];
- }
- for(i=10 ; i> 0 ; i--){
- j = rand() % 10 +1;
- holder = a[i];
- a[i] = a[j];
- a[j] = holder;
- }
- while( i < 10){
- cout<<a[i++]<<endl;
- }
- cin>>i;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement