viết chương trình nhập hai số a,b in ra số lớn hơn trong hai số ( được nhập từ bàn phím) nếu a>b thì in a. nếu a<=b thì in b 05/08/2021 Bởi Daisy viết chương trình nhập hai số a,b in ra số lớn hơn trong hai số ( được nhập từ bàn phím) nếu a>b thì in a. nếu a<=b thì in b
porgram ct; uses crt; var a,b:integer; begin clrscr; write(‘Nhap 2 so a, b: ‘); readln(a,b); if a<=b then write(b) else write(a); readln; end. Học tốt! Bình luận
uses crt;var a,b:longint;beginclrscr; write(‘a=’);readln(a); write(‘b=’);readln(b); write(‘So lon hon: ‘); if a>b then write(a); if a<=b then write(b);readlnend. Bình luận
porgram ct;
uses crt;
var a,b:integer;
begin clrscr;
write(‘Nhap 2 so a, b: ‘); readln(a,b);
if a<=b then write(b) else write(a);
readln;
end.
Học tốt!
uses crt;
var a,b:longint;
begin
clrscr;
write(‘a=’);readln(a);
write(‘b=’);readln(b);
write(‘So lon hon: ‘);
if a>b then write(a);
if a<=b then write(b);
readln
end.