Computer Science, asked by yashassvi7007740130, 3 months ago

WAP to print the first 20 multiples of any number input in Qbasic​

Answers

Answered by allysia
2

Language:

QBasic

Program:

CLS

INPUT "Enter a number: "; a

FOR i= 1 T0 20

PRINT i*a

NEXT i

END

Output:

Consider the attachment

Explanation:

  • Accepts a number in a.
  • Runa loop 20 times and returns the product of i with a.

Attachments:

Attachments:
Similar questions