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

商场打折问题

向下

商场打折问题 Empty 商场打折问题

帖子  孟迎 周二 三月 18, 2008 8:19 pm

Module Module1

Sub Main()
Dim a As Int16
Dim b As Int32
a = Console.ReadLine
If a > 1000 And a < 2000 Then
b = a * 0.95
ElseIf a > 2000 And a < 3000 Then
b = a * 0.9
ElseIf a < 3000 And a < 5000 Then
b = a * 0.85
ElseIf a > 5000 Then
b = a * 0.8
Else
b = a
End If
Console.WriteLine(b)
End Sub

End Module

孟迎

帖子数 : 2
注册日期 : 08-03-18

返回页首 向下

返回页首


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