Home » PHP Table of Number Program

PHP Table of Number Program

by Online Tutorials Library

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

You may also like