Learn
Exam

Multiplication of Two Numbers

Difficulty
STARTER

Problem

Given two natural numbers number1 and number2, write a function solution that returns the product of these two numbers.


Constraints

  • number1 and number2 are natural numbers between 1 and 100 inclusive.

Test Case

Test Case Number number1 number2 return
1 2 3 6
2 5 10 50
3 25 4 100

Explanation for Test Case 1

  • When number1 = 2 and number2 = 3, the product of the two numbers is 6.

Explanation for Test Case 2

  • When number1 = 5 and number2 = 10, the product of the two numbers is 50.

Explanation for Test Case 3

  • When number1 = 25 and number2 = 4, the product of the two numbers is 100.