VB Code

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Module Module1

Sub main()
Dim h, w As Integer
Console.Write("Hours of Working: ")
h = CInt(Console.ReadLine())
If h < 40 Then
Console.WriteLine("No vacation is allowed")
ElseIf h >= 40 Then
w = h / 40
Console.WriteLine("Vacation will be " + w.ToString())
End If
Console.ReadLine()
End Sub
End Module

You might also like