Wednesday, November 6, 2019

Qbasic

Qbasic to display factor

CLS
INPUT "Enter any number"; N
FOR I = 1 TO N
IF N MOD I = 0 THEN PRINT I
NEXT I
END

No comments:

Post a Comment