#include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cout<<"Nhap a="; cin>>a;
if (a%2==0) cout<<a<<" la so chan";
else cout<<a<<" la so le";
return 0;
}
Pascal hả bạn?Nếu là Pascal thì ct như sau:
Program scl;
uses crt;
var a:integer;
begin clrscr;
write('nhap so a');readln(a);
if (a mod 2=0) then writeln('so do la so chan')
else writeln('so do la so le');
readln
end.