I can't seem to get the program to do what I want. I want to print the numbers 1-10 along with their squares and cubes. For the squares and cubes it just prints 1 for each of them. Why is this?
EDIT: I'm dumb. The solution was simple. Problem solved.
How do you get it to indent within the quote?code said:Module Module 1
Sub Main()
Dim count As Integer
Dim count_squared As Integer
Dim count_cubed As Integer
count = 1
count_squared = count * count
count_cubed = count_squared * count
While count <= 10
System.Console.Writeline(count & count_squared & count_cubed)
count = count + 1
End While
Stop
End Sub
End Module
EDIT: I'm dumb. The solution was simple. Problem solved.