Javatpoint Logo
Javatpoint Logo

Table of Number

A table of a number can be printed using a loop in program.

Logic:

  • Define the number.
  • Run for loop.
  • Multiply the number with for loop output.

Example:

We'll print the table of 7.

Output:

PHP Table of number 1
Next TopicFactorial Program




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA