
-----------------------------------
Miko99
Mon Mar 31, 2003 10:14 am

need help writing a program display numbers with square root
-----------------------------------
Write a program that will print out the numbers 1 to 10 with their squares and cubes: Like this:	
	1	1	1
2	4	8
3	9	27
.	.	.
10	100	1000

NEED HELP WITH THIS!!! PLEASE!!!

-----------------------------------
Tony
Mon Mar 31, 2003 10:34 am


-----------------------------------
i dont see a problem... its just a simple for loop (you can read a tutorial on that)


for i:1..10
put i, " ", i**2, " ", i**3
end for


-----------------------------------
Dan
Mon Mar 31, 2003 6:13 pm


-----------------------------------
note that ** makes it to the power of

ie. 

1 ** 2 is 1 to the power 2
