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 tăng dần [C]

10cth1-2 July 30, 2011 0

[codes=c]#include "stdio.h"
void sapxep(int a[],int n);
void nhap(int a[],int &n);
void main()
  int a[100];
  int n;
  printf("Mang sau khi sap xep la: ");
  for(int i=0;i<n;i++)
void nhap(int a[],int &n)
  printf("nhap so phan tu: ");
  for(int i=0; i<n;i++)
    printf("nhap a[%d]: ",i);

void sapxep(int a[],int n)
  int tam;
  for(int i=0;i<n-1;i++)
    for(int k=i+1;k<n;k++)

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

Nam Le

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.