1
Program sohople;
Uses crt;
Var a: real;
Begin
Clrscr;
Write('nhap a',a); readln(a);
If a>= 3 then writeln('so hop le')
Else writeln('so khong hop le');
{Cai dang sau khong hop le thi cai dang truoc phai hop le chu nhi?}
Readln
End.
2.
Program soamduong;
Uses crt;
Var x: real;
Begin
Clrscr;
Write('nhap x',x); readln(x);
If x>= 0 then writeln('so duong')
Else writeln('so am');
Readln
End.
3.
Program diemtb;
Uses crt;
Var dtb: real;
Begin
Clrscr;
Write('nhap diem trung binh',dtb); readln(dtb);
If dtb>= 5 then writeln('Hs da thi dau')
Else writeln('hs da thi rot ');
Readln
End.
Mấy cái này tương tự nhau mà =°=