Challenge 1: Multiplication Table of a Number
In this challenge, you have to print the multiplication table of a number up to 10.
We'll cover the following
Problem statement
In this challenge, you will store all the values computed from a multiplication in the string answer
. You can use the valueOf()
method of string to convert int
value into a string.
Example
Input: int num
= 5
Here’s an illustration showing what the string answer
should have stored in it at the end of the while
loop for the above-mentioned input.
Get hands-on with 1400+ tech skills courses.