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

Frankenstein question (Refer to attached picture)
Black fur in mice ( B) is dominant to brown fur (b). Short tails (T) are dominant to long tails (t). What fraction of the progeny of crosses BbTt × BBtt will be
Can you help me solve if x=6214
Which underlined word in the sentence is a general article? The paint should be dry in an hour. A. hour B. dry C. The D. an
a real a team has for swimmers each member of the team swims 200 meters what is the total distance of the relay race in kilometers
Who owns the San Luis Rey mission owned by today
I REALLY NEED HELP WITH THIS I HAVE NO CLUE WHAT IM DOING PLEASE HELP!!!!!!!!!!!!! F(x)=9x^3+2x^2-5x+4 and g(x)=5x^3-7x+4. what is f(x)-g(x)? show all of your
If an oxygen has 8 protons in its nucleus what is its atomic number A.6 B.8 C.4 D.12
What is true at STP? 1) Temperature is 295 Kelvin. 2) One mole of gas occupies a volume of one liter. 3) Pressure is 1.0 atmosphere. 4) Volume is 2.4 liters
The visible spectrum of light is A) between 100 and 400 nm. B) between 400 and 700 nm. C) between 700 and 1,000 nm. D) between 100 and 1,000 nm.