velious

04-22-2004, 06:13 PM

dim x , one, zero

one = 1

zero = 0

x = inputbox (" Type any number up to find how many primes there are ")

rem if x is less than or = to 0 then FLASE

if x is <=1 then ' HERE IS THE ERROR

msgbox ("error")

else

msgbox ("thats right")

end if

I dont understand why the code

if x is <=1 is wrong.. :(

one = 1

zero = 0

x = inputbox (" Type any number up to find how many primes there are ")

rem if x is less than or = to 0 then FLASE

if x is <=1 then ' HERE IS THE ERROR

msgbox ("error")

else

msgbox ("thats right")

end if

I dont understand why the code

if x is <=1 is wrong.. :(