Computer Science, asked by mailpriya035, 1 month ago

10 FOR X = 5 TO 1. STEP -1 20 PRINT , 3*X 2*X , X 30 NEXT X​

Answers

Answered by allysia
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