[VB2017] For loops

Im trying to get the console to display these numbers using a for loop however the difference between the numbers increments by one so i have no idea what the step would be? Any help? 1, 4, 9, 16, 25, 36, 49, 64, 81, 100

This is what i have so far Module Module1

Sub Main() For i = 1 To 100 Step ? Console.WriteLine(i) Next Console.ReadKey() End Sub 

End Module

submitted by /u/harrxful
[link] [comments]

Leave a Reply