Write a qbasic program to display composite numbers from 50 to 100.

Write a qbasic program to display composite numbers from 50 to 100.

Ans:

CLS
FOR n=50 TO 100
C=0
FOR j=1 TO n
       IF n MOD j=0 THEN c=c+1 
NEXT j
IF c<>2 THEN PRINT n
NEXT n
END