Challenge: Multiplication Table of a Number
Explore how to write PHP code that prints the multiplication table of a given number using the while loop. Learn to build a result string by appending values with spaces and understand loop iteration control for this challenge.
We'll cover the following...
We'll cover the following...
Problem Statement
Write a code which will
- Print the multiplication table of a number
numup to 10. - You have to use
whileloop for solving this problem. - Your code should return the string
ans