Write a qbasic program to display the factors of an input number.

Write a qbasic program to display the factors of an input number.












Ans: 
CLS
INPUT "Enter a number "; number
FOR count=1 TO number
       IF number MOD count=0 THEN 
PRINT count
NEXT count
END