answersLogoWhite

0

10 input "enter a no."; n

20 for i = 1 to n

30 if n mod i = 0 then c = c +1

40 next i

50 if c = 2 then print "Prime number" else print "not a prime number"

60 end

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: How do you find prime no in gwbasic program?
Write your answer...
Submit
Still have questions?
magnify glass
imp