In your IF statement you have after THEN on the same line two statements: [pre]Print "COMPOSITE"[/pre]and [pre]GoTo 30[/pre]
You need to separate the 2 statements with colon, i.e.: [pre]50 If N Mod P = 0 Then Print "COMPOSITE"[highlight #FCE94F]:[/highlight] GoTo 30[/pre]
The same error is on the next line [pre]60 Print "PRIME"[highlight #FCE94F]:[/highlight] GoTo 30[/pre]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.