Computer Science Canada

need help writing a program display numbers with square root

Author:  Miko99 [ Mon Mar 31, 2003 10:14 am ]
Post subject:  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!!!

Author:  Tony [ Mon Mar 31, 2003 10:34 am ]
Post subject: 

i dont see a problem... its just a simple for loop (you can read a tutorial on that)

code:

for i:1..10
put i, " ", i**2, " ", i**3
end for

Author:  Dan [ Mon Mar 31, 2003 6:13 pm ]
Post subject: 

note that ** makes it to the power of

ie.

1 ** 2 is 1 to the power 2


: