力士乐变量柱塞泵:把三个整数中最大的和最小的打印出来。简便方法最好谢谢

来源:百度文库 编辑:高考问答 时间:2024/05/03 07:43:24
我上次看了别人提的“把三个整数中最大的打印出来。”,问答很好如果改为:把三个整数中最大的和最小的打印出来,又怎样写呢?
请大家不要笑哈,初学者嘛。
用C语言编写。

用那个程序编写阿:

integer a,b,c
if a>b then
if a>c then
write(*,*) a
end if
else if b>c then
write(*,*)b
else write(*,*) c
end if
end if
end