Search⌘ K

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.

Problem Statement

Write a code which will

  • Print the multiplication table of a number num up to 10.
  • You have to use while loop for solving this problem.
  • Your code should return the string ans
...