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

商品折扣问题

向下

商品折扣问题 Empty 商品折扣问题

帖子  李继伟-网4 周二 三月 18, 2008 8:29 pm

Module Module1

Sub Main()
Dim a As Int16 = Console.ReadLine
If a < 1000 Then
Console.WriteLine(a * 1)
ElseIf a >= 1000 And a <= 2000 Then
Console.WriteLine(a * 0.95)

ElseIf a > 2000 And a <= 3000 Then
Console.WriteLine(a * 0.9)

ElseIf a > 3000 And a <= 5000 Then
Console.WriteLine(a * 0.85)
ElseIf a > 5000 Then
Console.WriteLine(a * 0.Cool
End If




End Sub

End Module

李继伟-网4

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

返回页首 向下

返回页首


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