05-31-2005, 06:22 PM
Is this what you were asking?
...only works with integers >= 1...
Code:
input "a = ", a
input "b = ", b
n = a
while ((n / b) = (n \ b))
n = n / b
if n = 1 then
print a; " is a power of"; b
sleep
end
end if
wend
print a; " is NOT a power of"; b
sleep
...only works with integers >= 1...
COUNT HACKED BY RAZVEEE
RAZVEE IS A SCRIPT KIDDIE- hacker9
RAZVEE IS A SCRIPT KIDDIE- hacker9