#include using namespace std; void nhapMang(int a[], int n) { for (int i = 0; i < n; i++) { cout<<"Nhap a["<>a[i]; } } void sapXep(int a[], int n) { for (int i = 0; i < n-1; i++) { for (int j = i + 1; j < n; j++) { if (a[i] > a[j]) { int tmp = a[i]; a[i] = a[j]; a[j] = tmp; } } } cout<<"Mang sau khi sap xep tang dan:"<= 10 && a[i] <= 20) count++; } return count; } bool kiemTraSoChan(int a[], int n) { for (int i = 0; i < n - 2; i++) { if (a[i] % 2 == 0 && a[i+1] % 2 == 0 && a[i+2] % 2 == 0) return true; } return false; } int main() { int n, a[100]; cout<<"Nhap n: "; cin>>n; nhapMang(a, n); sapXep(a, n); cout<<"So phan tu thuoc doan [10, 20] la: "<