Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

BASIC Program to Create Multiplication Table

This is a Basic Program to Create Multiplication Table.

This program uses the FOR NEXT looping statement in BASIC to display the Times table from 1 to 5 in rows and columns.

With more simple programs in BASIC language, you can master the art of programming in languages such as Pascal, C++, Java and many more

Program Code

10    CLS
20    FOR I= 1  TO 5 STEP 1
30     Print using "###"; i;
40    Next i
50     For j= 2 to 10 step 2
60     Print using "###"; j;
70     Next j
80     For k = 3 to 15 step 3
90        Print using "###"; k;
100    Next k
110   For m = 4 to 20 step 4
120      Print using "###"; m;
130    Next m
140     End

You can follow the logic above to create the multiplication table of any size.


Also Read: BASIC Program to Compare The Greatest of Three Numbers
                   Pascal Program of Matrix Multiplication
                   BASIC Program to Create Multiplication Table
                   BASIC Program to Find Even Numbers Using FOR TO NEXT statement


This post first appeared on Techlass, please read the originial post: here

Share the post

BASIC Program to Create Multiplication Table

×

Subscribe to Techlass

Get updates delivered right to your inbox!

Thank you for your subscription

×