Home Qbasic Program Write a qbasic program to display prime or composite number. Write a qbasic program to display prime or composite number. By -ALK 8:24:00 AM 0 CLS INPUT "Enter a number ";n FOR j=1 TO n IF n MOD j=0 THEN c=c+1 NEXT j IF c=2 THEN PRINT "It is prime number" ELSE PRINT "It is composite number" END IF END Tags: Qbasic Program Facebook Twitter Whatsapp Newer Older
Your suggestions / query encourages more to share things like this. Feel free to comment in below box.
What ever you think about it...