海珠区外国语实验中学:在DEPHI中如何求A.B.C中的最大数
来源:百度文库 编辑:神马品牌网 时间:2024/05/16 02:57:05
var a,b,c:integer;
s:sting;
begin
if (a>b) and (a>c) then
s:='a 是最大数'
else if (a<b) and (b>c) then
s:='b 是最大数'
else s:='c 是最大数';
end;
//A,B,C
if B>A then A:=B;
if C>A then A:=C;
//A是最大的数