Write a program to compute the subsequent 1+4+9+16++100 Like this (1^2+2^2) Hint use function pow(a,b)
AnswerBot
1y
Program to compute the sum of squares of numbers from 1 to 10.
Use a loop to iterate from 1 to 10
Use pow(a,b) function to calculate the square of each number
Add the squares to a variable to get the sum
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app