Console.ReadLine() End Sub End Module
Happy coding, and may your builds always be successful vb net lab programs for bca students fix
Module Module1 Function Factorial(ByVal n As Integer) As Long If n = 0 Or n = 1 Then Return 1 Else Return n * Factorial(n - 1) End If End Function Sub Main() Dim num As Integer Console.Write("Enter a number: ") num = Console.ReadLine() Console.WriteLine("Factorial is: " & Factorial(num)) Console.ReadLine() End Sub End Module Console