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 March 19, 2019 0 CLSINPUT "Enter a number ";nFOR j=1 TO n IF n MOD j=0 THEN c=c+1 NEXT jIF c=2 THEN PRINT "It is prime number"ELSE PRINT "It is composite number"END IFEND Tags: Qbasic Program Facebook Twitter Whatsapp Newer Older
Feel free to leave your comment below or get in touch with me on WhatsApp/Viber number: +9779844128670