answersLogoWhite

0


Best Answer

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

11y ago
This answer is:
User Avatar

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
Related questions

You want to save Excel numeric data into gwbasic format?

Not sure what you are trying to do. GWBasic is a programming language; Excel is a spreadsheet. If you like, just copy data from Excel to your GWBasic editing program and reformat, as needed.


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


What are the difference between gwbasic and qbasic?

Difference between QBASIC and GWBASIC?


How save the program in gwbasic?

first run the program then write SAVE" or press F4 then in quotation marks write the name with native file format e.g : Save"programno1.bas"


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


Will you please tell the GWBASIC program for the multiplication of two arrays?

just type "chikosalovakia" on gw basic .......................it will give you all instructions............it is a special code.................


A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


Prime numbers between 1 to 10 in microprocessor 8085?

program to find prime number in 8085 microprocessor


What is difference between stop and end in GWbasic?

The end command is used to end the program whereas the stop command is used to break the loop like ctrl+c. After running the program it will come as break in 20 or whatever


Write a C program to find the sum of all prime numbers?

Since there is an infinite set of prime numbers the answer would be infinity.


What is full form of gwbasic?

George Washington Basic


How do you operate GWBasic computer programming language?

Check out the resources below.