Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Name already in use ERROR

Status
Not open for further replies.
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]
 
Thanx

Nice to know you are still in the game.

Been a year since I last communicated with you.

pa99
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top