Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by dd ( 15 years ago )
int minaTal[10];
srand((unsigned int) time(0));
for(int i = 0; i < 10; i++) minaTal[i] = rand()000+1;
int a = 0;
int b = 0;
//int i = 0;
int temp;
while(a < 9)
{
while(b < (9 - a))
{
if(minaTal[b] < minaTal[b+1])
{
temp = minaTal[b];
minaTal[b] = minaTal[b+1];
minaTal[b+1] = temp;
}
b++;
}
//i++;
b = 0;
a++;
}
for(int i = 0; i < 10; i++) cout << minaTal[i] << endl;
Revise this Paste