write a qbasic program to print the multiplication table of a number
Answers
Answered by
3
Answer:
The given cσde is written in QBASIC.
CLS
INPUT "Enter any number"; N
FOR I = 1 TO 10
A = N * I
PRINT N; "x"; I; "="; A
NEXT I
END
Algorithm:
- Accept the number.
- Iterate a loop in the range 1 to 10.
- Multiply the numbers with each number in the given range and display it.
See the attachment for output.
•••♪
Answered by
2
Answer:
CLS
INPUT N
FOR I=1 TO N
PRINT N;"×";I;"=";(N*I)
NEXT I
END
Similar questions
India Languages,
1 month ago
Geography,
1 month ago
Math,
1 month ago
History,
3 months ago
Social Sciences,
10 months ago
Science,
10 months ago