#include using namespace std; int main() { int a[10] = {9,8,7,6,5,4,3,2,1,0}; for(int i = 0; i < 9; i++) { for(int j = i+1; j < 10; j++) if(a[i] > a[j]) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } } for(int i = 0; i < 10; i++) cout << a[i] << " "; return 0; }