Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.

Program To Print Multiplication table of 2, 3 and 4

To print the multiplication table we have to use for loop. Inner loop is used here where two varriable are plays vital role i.e. i and j. Symbolic letter "x" and "=" are also being used to give illusion of multiplication.

So, the program begins here

This program takes two varriable i andd j and are multiplied in the inner loop. In a first loop the value of i remains same while the value of j increases by 1. Integer specifier are used. Here new line is printed as the loop of j ended the new line begins.


Output
Here, all the multiplication table is not shown because the output window is small.
Share:

1 comment:

If you have any doubt, let me know...

Translate

Wikipedia

Search results