.NET自由天空
Would you like to react to this message? Create an account in a few clicks or log in to continue.

第一题和第二题

向下

第一题和第二题 Empty 第一题和第二题

帖子  网四-刘广洋 周三 三月 19, 2008 9:04 am

第一题:
Dim a As Integer
a = Console.ReadLine
Dim b As Integer
If a > 5000 Then
b = a * 0.8
ElseIf 5000 > a And a > 3000 Then
b = a * 0.85
ElseIf 3000 > a And a > 2000 Then
b = a * 0.9
ElseIf 2000 > a And a > 1000 Then
b = a * 0.95
End If
Console.Write(b)
第二题:
Sub Main()
Dim a, b, c As Integer
a = Console.ReadLine
If a = 6 Then
b = Console.ReadLine
Else
Console.WriteLine("第一个数字错误")
End If
If b = 8 Then
c = Console.ReadLine
Else : Console.WriteLine("第二个数字错误")
End If
If c = 0 Then Console.WriteLine("密码正确,你快赶上我聪明啦= =~")
Basketball

网四-刘广洋

帖子数 : 1
注册日期 : 08-03-19

返回页首 向下

返回页首


 
您在这个论坛的权限:
不能在这个论坛回复主题