for (int i=1;i<=cnt;i++) { for (int j=i+1;j<=cnt;j++) { if (b[i]>b[j]) { swap (b[i], b[j]); } } }
Citește articolul