Challenge 4: Overload the Square Sum Function
In this challenge, we have to overload the function that we created in the previous lesson.
We'll cover the following
Problem statement
In the previous challenge, we implemented the function squareSum(float num1, float num2, float num3)
which takes three numbers, squares them, and returns their sum. For this challenge, we have to overload this function to take in int
type inputs and return int
type result. Both of these functions will exist in the same program and depending upon the input type, the appropriate function should be called.
Input
Three integer numbers.
Output
An integer representing the sum of the squares of input numbers.
Get hands-on with 1400+ tech skills courses.