Someone emailed me this question:
“I need to create a visual basic console application that the user enters two number, then the program will display the numbers between the two number entered”
I came out with the following code:
Sub Main()
Dim x, y, p, m, n As Integer
x = 56
y = 35
m = x – y
For n = 1 To m
p = x – n
Console.WriteLine(p)
Next
End Sub
Running the code will generate all the integers between the two numbers.