Program 3

 Object:

Write a Program to prepare any Multiplication table up till ten time.

Program:

10 CLS

20 INPUT "Enter any number: " ; n

30 FOR a = 1 TO 10

40 PRINT n ; "x" ; a ; "=" ; n*a

50 NEXT a

60 END

RUN


Output:

Enter any number: 5

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



No comments:

Post a Comment