Hi I have a program in java that outputs 1000 hello world without using iterators (for, do while etc)..
I tried to translate my code into vb.net and here's my code:
`Module Module1
Sub Main()
printToThousand(1)
End Sub
Public Function printToThousand(ByVal i As Integer)
Dim r As Boolean
Console.WriteLine("Hello World")
Console.ReadKey()
r = (i < 1000) Or labas()
printToThousand(i + 1)
Return r
End Function
Public Function labas()
System.Environment.Exit(1)
Return True
End Function
End Module
`
But it wouldn't output 1000 hello world, only one. Please help.