This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Sắp xếp mảng chản đầu lẻ cuối

10cth1-2 August 1, 2011 0

[codes=c]void xapxep (int a[], int n)
{
  for (int i=0, j<n-1; i<j;)
    if (a[i]%2==0) j++;
    else if (a[i]%2!=0) j–;
      else
        {
          hoanvi(a[i], a[j]);
          i++;
          j–;
        }
}[/codes]
p/s:
[codes=c]for (int i=0, j<n-1; i<j;) [/codes]
là thay thế của
[codes=c]
for (int i=0; i<n-1; i++)
    for (int j=i+1; j<n; j++)
[/codes]


Last modified on March 31st, 2021 at 1:17 am

Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.