Computer Science, asked by abj1, 1 year ago

write a program to take a number input from the user and then display 10 multiples of that number

Answers

Answered by BhavyaRajput1
6
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

Hope you understand how this works. Don’t hesitate questioning if you don’t.
1.7k Views · View Upvoters
Similar questions