viết chương trình nhập hai số a,b từ bàn phím và in hai số đó ra màn hình theo thứ tự không giảm 11/08/2021 Bởi Josie viết chương trình nhập hai số a,b từ bàn phím và in hai số đó ra màn hình theo thứ tự không giảm
Uses crt; Var a,b:Integer;BeginRead(a,b);If a>b then write(b,‘ ‘,a) else write(a,‘ ‘,b);end. Bình luận
var a,b:longint; begin write(‘Nhap a,b: ‘); readln(a,b); if a>b then write(b,’ ‘,a) else write(a,’ ‘,b); readln; end. Bình luận
Uses crt;
Var a,b:Integer;
Begin
Read(a,b);
If a>b then write(b,‘ ‘,a) else write(a,‘ ‘,b);
end.
var a,b:longint;
begin
write(‘Nhap a,b: ‘); readln(a,b);
if a>b then write(b,’ ‘,a) else write(a,’ ‘,b);
readln;
end.