#include <iostream>
using namespace std;
int main()
{
int temp;
int mango[5];
for(int k=0; k<5;k++)
{
cin >> mango[k];
}
for(int j=0;j<5-i;j++)
{
if(mango[j]<mango[j+1])
{
temp = mango[j];
mango[j]=mango[j+1];
mango[j+1]=temp;
}
}
for (int k=0;k<5;k++)
{
cout << mango[k] << " ";
}
cin.get();
return 0;
}
Thursday, 24 January 2013
Sorting
08:27
ATEEK
No comments
0 comments:
Post a Comment