Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Main()
  2.         Dim fifteen As Integer
  3.         Dim fifteenout As Integer
  4.         Dim twentyfive As Integer
  5.         Dim twentyfiveout As Integer
  6.         Dim thirtyfive As Integer
  7.         Dim thirtyfiveout As Integer
  8.         Dim income As Integer
  9.  
  10.         Console.WriteLine("Please enter your income")
  11.         Console.WriteLine()
  12.         income = Console.ReadLine
  13.  
  14.         If income < 9999 Then
  15.             Console.WriteLine("0% taken off of income")
  16.         Else
  17.             If (income > 10000) And (income < 29999) Then
  18.                 Console.WriteLine("15% taken off income")
  19.                 fifteen = income / 15
  20.                 fifteenout = income - fifteen
  21.                 Console.WriteLine(fifteenout)
  22.                 Console.ReadLine()
  23.             Else
  24.                 If (income > 30000) Or (income < 70000) Then
  25.                     Console.WriteLine("25% taken off income")
  26.                     twentyfive = income / 25
  27.                     twentyfiveout = (income - twentyfive)
  28.                     Console.WriteLine(twentyfiveout)
  29.                     Console.ReadLine()
  30.                 Else
  31.                     If income > 70000 Then
  32.                         Console.WriteLine("35% taken off income")
  33.                         thirtyfive = income / 35
  34.                         thirtyfiveout = income - thirtyfive
  35.                         Console.WriteLine(thirtyfiveout)
  36.                     End If
  37.                 End If
  38.             End If
  39.         End If
  40.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement