Program max; Var a, b, c, Max: integer; Begin Write (‘Nhap a= ‘); Readln (a); Write (‘Nhap b= ‘); Readln (b); Write (‘Nhap c= ‘); Readln (c); Max:= a; If b> Max then Max:=b; If c> Max then Max:=c; Write(‘Max= ‘,Max); Readln; End. Bình luận
Program max;
Var a, b, c, Max: integer;
Begin
Write (‘Nhap a= ‘); Readln (a);
Write (‘Nhap b= ‘); Readln (b);
Write (‘Nhap c= ‘); Readln (c);
Max:= a;
If b> Max then Max:=b;
If c> Max then Max:=c;
Write(‘Max= ‘,Max);
Readln;
End.