是作业题吧?由小到大输出
program bithreenum(input,output);
var
a,b,c,d:int;
begin
write('input a,b,c');
readln(a,b,c);
if a>b then
begin
d:=a;
a:=b;
b:=d;
end;
if a>c then
begin
d:=a;
a:=c;
c:=d;
end;
if b>c then
begin
d:=b;
b:=c;
c:=d;
end;
writeln('output thre numbers:',a,b,c)
end.
program bithreenum(input,output);
var
a,b,c,d:int;
begin
write('input a,b,c');
readln(a,b,c);
if a>b then
begin
d:=a;
a:=b;
b:=d;
end;
if a>c then
begin
d:=a;
a:=c;
c:=d;
end;
if b>c then
begin
d:=b;
b:=c;
c:=d;
end;
writeln('output thre numbers:',a,b,c)
end.
解决方案 »
- delphi 生成报表打印预览
- 关闭playsound
- 怎样做哟个有颜色的button
- ClientDataSet提交数据库的问题!要仔细调试才能出来的错误! 200508
- 弱问:关于Delphi7与fastreport变量传递的问题?急!!!(解决后马上给分!)
- 怎么在DEPHI里得到当前日期的月份?具体怎么写?
- 国庆大送分,一个简单的问题,分不够再说
- 为什么我的窗口一移动,程序就死机了呢?
- 我想增加一條記錄時﹐所增記錄內容和上一條記錄一樣﹐主鍵值字段除外。用什么方法最好﹖
- @@@@@@@@@@@@@@@@关于报表线的问题@@@@@@@@@@@@@@@
- Delphi资深程序员彻底廉价出售至北京
- 这段程序那李有错?
{$APPTYPE CONSOLE}
uses SysUtils;var
i,i1,i2,i3,itmp:integer;
beginreadln(i1,i2,i3);
if i1 > i2 then i1 := i2;
if i1>i3 then i1:=i3;
writeln('min value:',i1); // Insert user code here
end.
{$APPTYPE CONSOLE}
uses SysUtils,math;var
a,b,c,temp:integer;
beginreadln(a,b,c);
temp := min(min(a,b),c);
writeln('min value:',temp);
readln ;
end.