sum of squares of 5 numbers:
12+22+32+42+52
Example 1: sum of squares of n numbers using for loop
Output:
Enter nth number : 3 Sum of squares is : 14 Enter nth number : 10 Sum of squares is : 385
No comments:
Post a Comment