Thread: problem
View Single Post
Old Mar 13th, 2008, 6:10 AM   #2
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 150
Rep Power: 1 Grich is on a distinguished road
Re: problem

Look for something called a POW() function. You could hard code it like this (in BASIC psuedo):
DIM number_1 AS INTEGER = 4
DIM number_2 AS INTEGER = 2
DO UNTIL number == 0
number _2 -= 1
number_1 *= number_1
LOOP
RETURN number_1
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote