Challenge 1: Product of Numbers
Test your knowledge by writing code to compute the product of two numbers.
Problem statement
Write a PHP function named product
that computes the product of two integers. The function should take two integers as parameters and return their product.
Sample input 1
num1 = 2
num2 = 8
Expected output
16
Sample input 2
num1 = -7
num2 = 5
Expected output
-35
Try it yourself
Get hands-on with 1400+ tech skills courses.