mide003
mide003 mide003
  • 08-09-2017
  • Computers and Technology
contestada

write a Qbasic program to write the factors of a number with commas
please

Respuesta :

kaevras
kaevras kaevras
  • 08-09-2017
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


Answer Link

Otras preguntas

A line has a slope of -5 and passes through (1,-1).which is the equation of the line in point - slope form?
If a heterozygous plant seed color (Rr) is crossed with a homozygous recessive plant (rr), what is the probability of each seed color being produced?
What does the phrase "a grave injustice " mean??
how do i write a word problem for $3.00 divided by $0.25
List three examples of direct evidence of evolution.
marty ate 4/6 of his pizza and luis ate 5/6 of his pizza. marty ate more pizza than luis. how is that possible?
Why was Franz Ferdinand assassinated?I have to draw a political cartoon depicting the assassination from the point of view of a Serbian nationalist or an Austri
During energy transformations, sometimes energy is destroyed.is that true or false
What is poem and a poetry
Many inherited disorders of humans appear in children of parents who do not have the disorder. How can you explain this?