C++ Program to Calculate Sum of Series 1²+2²+3²+n²

C++ Program to Calculate Sum of Series 1²+2²+3²+n² 2

Write a C++ Program to Calculate Sum of Series 1²+2²+3²+n² with an example. The math formula to find Sum of Series 1²+2²+3²+…+n² = n(n + 1)(2n + 1)/6. #include<iostream> using namespace std; int main() { int number, sum = 0; cout << “Please Enter the Number to find sum of Series 1^2 + 2^2 = … Read more