Dim money, cost As Integer money = Console.ReadLine If money <= 520000 Then cost = money * 0.05 ElseIf money >= 520001 And money <= 1170000 Then cost = (money * 0.12) - 36400 ElseIf money >= 1170001 And money <= 2350000 Then cost = (money * 0.2) - 130000 ElseIf money >= 2350001 And money <= 4400000 Then cost = (money * 0.3) - 365000 ElseIf money >= 4400001 Then cost = (money * 0.4) - 805000 End If
Console.WriteLine("應繳金額: " & cost) Console.WriteLine("") Console.WriteLine("") Console.WriteLine("是否重新輸入?(Y/N)") End Sub
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:
留言列表