#include <iostream>
#include <cmath>
int main() {
double a, b, c, result;
// Input values for a, b, and c
std::cout << "Enter the value of a: ";
std::cin >> a;
std::cout << "Enter the value of b: ";
std::cin >> b;
std::cout << "Enter the value of c: ";
std::cin >> c;
// Calculate the square of each term
double aSquare = pow(a, 2);
double bSquare = pow(b, 2);
double cSquare = pow(c, 2);
// Sum the squares
result = aSquare + bSquare + cSquare;
// Display the result
std::cout << "Result: " << result << std::endl;
return 0;
}