Accept a number from the user and print first 10 multiples of the entered
number using FOR NEXT LOOP. 1
Answers
Answered by
2
Question:-
Write a QBASIC program to accept a number from the user and print first 10 multiples of the entered number using for loop.
Code:-
CLS
INPUT "ENTER A NUMBER: "; N
FOR I = 1 TO 10 STEP 1
A = N * I
PRINT N; "x"; I; "="; A
NEXT I
END
Similar questions
Computer Science,
6 months ago
Social Sciences,
6 months ago
Math,
11 months ago
Hindi,
11 months ago