Computer Science, asked by balrajsin14, 1 month ago

write a program in qbasic to find the product of first 5 natural numbers in loop statement​

Answers

Answered by sayakb68
1

Answer:

CLS

INPUT “Enter any number”; n

FOR i = 1 TO 10

a = n * i

PRINT n; “x”; i; “=”; a

NEXT i

END

Here if user wants to find the table of 5 then it’s output will be

5 x 1=5

5 x 2=10

5 x 3=15

5 x 4=20

5 x 5=25

5 x 6=30

5 x 7=35

5 x 8=40

5 x 9=45

5 x 10=50

hope it helps uh :)

Similar questions