微信转账一次5万可以吗:帮忙编写一个QBASIC语言的程序~急

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/27 16:05:42
任意输入三个数,输出最大的数
要求用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就是最大的数