C++ Program to Find Sum of Square of n Natural Numbers

This C++ program will find the sum of square of n natural numbers.

For example:

n = 3

Then, Sum = 14

 

Output

Enter any number: 50

Sum=42925

3 thoughts on “C++ Program to Find Sum of Square of n Natural Numbers

  1. alan

    The provided code is very useful.will you please provide the same code using do while loop

    Reply
  2. Alphy Rose Cyril

    The code provided was useful in correcting the code i had written. Could you please provide the Algorithm for this program?
    Thanks in advance!!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *