5/18/2023 0 Comments Multiplication table print$num = 10 mean multiplcation will be print from 1 to 10, if we assigned $num = 12 then multiplication will be print from 1 to 12. Iterate inner loop till $num because, inner loop will be run till, multiplication want to print.Print “” to start row of table inside of outer loop. ![]() Iterate outer loop till 10, because multiply will be up to 10.as per your need you can increase this e.g. Define $num = 10, that mean, we are printing table till 10.Define HTML table, which will show table in formatting.Result: multiplication of table from 1 to 10 Let’s Understand the logic to print table in PHP program to print table in PHP įor($j =1 $j $j x $i = $multiplication_table " print table in PHP we must be do an exercise on this. Multiplication is define : that a Mathematically operation where one number can multiply to other number, which symbolic representation is like : a × b, a ⋅ b, a ∗ b, or ab, where a and b are positive integer.
0 Comments
Leave a Reply. |