Challenge 1: Square Numbers and Return their Sum

In this challenge, you need to implement a method that squares passing variables and returns their sum.

Problem Statement

Implement a method SquaresSum(double num1, double num2, double num3), in a class SumOfSquares, which takes three numbers, squares them and returns their sum. This is just a refresher to test your knowledge of methods in C#.


Three double numbers.


The sum of the squares of the passed numbers

Sample Input

2, 3, 4

Sample Output


Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy