Loading…

Write a program to display a table of any given number?

Example

                                        

function getTableOfGivenNumber($number) {

   for($i=1 ; $i<=10 ; $i++) {

       echo $i*$number;

   }

}

getTableOfGivenNumber(5);

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question