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
Difference between QBASIC and GWBASIC?
just type "chikosalovakia" on gw basic .......................it will give you all instructions............it is a special code.................
Write your own prime number program and find out.
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.
program to find prime number in 8085 microprocessor
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.
VBnet program to find the prime numbers between 100 to 200?
Difference between QBASIC and 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"
just type "chikosalovakia" on gw basic .......................it will give you all instructions............it is a special code.................
Write your own prime number program and find out.
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.
program to find prime number in 8085 microprocessor
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
Since there is an infinite set of prime numbers the answer would be infinity.
George Washington Basic
Check out the resources below.