Write a program in QBASIC to print table of 9
Answers
Answered by
8
Answer:
Think about it from the basics. As a human, how would you get the multiples of 9?
You would start by multiplying 9 with 1 then with 2 and then with 3 and so on as:
9 x 1 = 9
9 x 2 = 18
9 x 3 = 27
. . . . . . . .
Just put this into QBASIC statements now.
Let us assume you want to display 10 multiples of 9. Then you would want to multiply 9 with 1 and do the same thing upto 10. This is how you do it.
CLS
FOR I = 1 TO 10
PRINT 9 * I
NEXT I
END
Explanation:
Answered by
0
Answer:
CLS
FOR A = 1 TO 10
PRINT "12*";A;"=";12*A
NEXT A
END
Explanation:
Similar questions