• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Stupid Visual Basic Question

Overload

Smash Lord
Joined
Jul 7, 2008
Messages
1,531
Location
RI
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?


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
How do you get it to indent within the quote?

EDIT: I'm dumb. The solution was simple. Problem solved.
 
Top Bottom