台球室里面的装修风格:帮忙编写一个QBASIC语言的程序~急
来源:百度文库 编辑:高考问答 时间:2024/05/07 18:38:09
任意输入三个数,输出最大的数
要求用IF语句(块和行的都可以)我是初学者,各位高手帮帮忙~
要求用IF语句(块和行的都可以)我是初学者,各位高手帮帮忙~
Dim A As Integer, B As Integer, C As Integer
Dim Max As Integer
Print "Enter A: ";
Input A
Print "Enter B: ";
Input B
Print "Enter C: ";
Input C
M = A
If M < B Then M = B
If M < C Then M = C
Print M
Dim A As Integer
Dim B As Integer
Dim C As Integer
Dim M As Integer
A = 100
B = 9
C = 1000
M = A '假设 A 是最大的...
If M < B Then M = B
If M < C Then M = C
Print M
if A<B then A=B
if A<C then A=C
然后A就是最大的数