var a = 0; if(a%2===0){ console.log(‘Day la so chan : ‘+a); } else { console.log(‘Day la so le : ‘+a); } Bình luận
uses crt; var t: integer; begin clrscr; write(‘Nhap t = ‘); readln(t); If t mod 2 = 0 then writeln(t, ‘ la so chan’) Else writeln(t, ‘ la so le’); readln end. Bình luận
var a = 0;
if(a%2===0){
console.log(‘Day la so chan : ‘+a);
} else {
console.log(‘Day la so le : ‘+a);
}
uses crt;
var t: integer;
begin
clrscr;
write(‘Nhap t = ‘); readln(t);
If t mod 2 = 0 then writeln(t, ‘ la so chan’)
Else writeln(t, ‘ la so le’);
readln
end.