187k views
5 votes
Write a Qbasic program to write the factors of a number with commas
please

User BubbaT
by
7.5k points

1 Answer

0 votes
DIM Num AS INTEGER

CLS

INPUT "Enter number: ", Num

Num = ABS(Num)

FOR i = 1 TO Num
FOR j = 1 TO Num
IF i * j = Num THEN
PRINT i
PRINT ", "
PRINT -1 * i
PRINT ", "
END IF
NEXT j
NEXT i


User Namelessjon
by
7.9k points

Related questions

asked Feb 22, 2024 220k views
Dw asked Feb 22, 2024
by Dw
8.0k points
2 answers
0 votes
220k views
1 answer
0 votes
65.1k views