PHP Code://#include <iostream.h> --> out of date
#include <iostream>
#include <conio.h>
using namespace std; //Thêm cái này vào để xài cout thay vì std::cout...
int main ()
{
unsigned int n,dem;
cout <<"Nhap n :";
cin >>n;
//dem == 0; phép gán là =
dem = 0;
//for ( n;n>0;--n) -> đọc lại cấu trúc for
for(; n > 0; --n)
{
if (( n % 2 ==0) && (n %3 ==0))
//dem==dem+1;
dem = dem + 1;
};//Không có ; sau block {} trừ class + struct
cout <<"Gom :" <<dem <<" chia het cho 3 va 2";
getch();
return 0;
}