10 FOR X = 5 TO 1. STEP -1 20 PRINT , 3*X 2*X , X 30 NEXT X
Answers
Answered by
0
Question:
Output of the program:
FOR X = 5 TO 1 STEP -1
PRINT 3*X ,2*X , X 30
NEXT X
Language:
QBasic
Answer:
Consider the attachment.
Explanation:
- Loop runs backwards from one and every time assigns x a value starting from 5 down to 1.
- 3*X returns product of X with 3 in the same column in the output screen, similarly 2*x and x*30 are shown.
Attachments:
Similar questions
Hindi,
2 months ago
Science,
2 months ago
Geography,
4 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago