Program - 1: "Enter The Product Number (Between 1 and 5), - 10 To Quit: "
Program - 1: "Enter The Product Number (Between 1 and 5), - 10 To Quit: "
Sub Main()
Case 1
Console.Write("Enter the required quantity : ")
Quantity = Console.ReadLine()
Total1 = Total1 + (Quantity * 2.98)
Case 2
Case 3
Case 4
Console.Write("Enter the required quantity : ")
Quantity = Console.ReadLine()
Total4 = Total4 + (Quantity * 4.49)
Case 5
Case Else
If Product <> -10 Then
Console.WriteLine("Invalid Entry. Please enter an
integer between 1 and 5")
Else
'Console.WriteLine("Program executed successfully.
Results printed.")
End If
End Select
End While
Console.Read()
End Sub
End Module
Program – 2
Sub Main()
Dim Number As Integer = 1 'Number declared to iterate it from 1 to 20
Dim Factorial As Long = 1 'To display the factorial after calculation
End While
Console.Read()
End Sub
End Module
Program - 3
Sub Main()
'Declaration of variables to store values
Dim side1, Side2, Hypotenuse As Integer
End If
Next
Next
Next
Console.ReadLine()
End Sub
End Module