answersLogoWhite

0

main()

{

sum=0;

float avg=0.0;

int sqr[10];

for(i=1;i<=10;i++)

{

sqr[i]=(i*i);

}

for(i=1;i<=10;i++)

{

sum=sum+sqr[i];

}

avg=sum/10;

dts it !!!

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

Write algorithm compute sum of square of N numbers?

Oh, what a lovely question! To compute the sum of the squares of N numbers, you can create a simple algorithm. Start by initializing a variable to hold the sum, then loop through each number, square it, and add it to the sum. Once you've done this for all N numbers, you'll have the sum of their squares. Just like painting a happy little tree, take your time and enjoy the process.


Write a C Program to print sum of squares of odd numbers?

#include


What does least squares mean?

Compute to the smallest fraction, reduce to the least number


The sum of 5 numbers is 28 and the sum of their squares is 226 what is the average?

If the sum of 5 = 28 then the average is 28 / 5 = 5.6 If the sum of the squares = 226 then the average is 226 / 5 = 45.2 From this information, and by a process of elimination, the numbers might be 1, 2, 6, 8 and 11.


What is the next number in the sequence 25 36 49 64?

81. They are the perfect squares of numbers starting from 5.81. They are the perfect squares of numbers starting from 5.81. They are the perfect squares of numbers starting from 5.81. They are the perfect squares of numbers starting from 5.


Which numbers are NOT perfect squares?

In the complex field, every number is a square so there are no numbers that are not squares. If the domain is reduced to that of real numbers, any negative number is not a square. However, the term "square numbers" (not number's!) is often used to refer to perfect square numbers. These are numbers that are squares of integers. Therefore the squares of fractions or Irrational Numbers are non-squares.


Are no perfect squares whole numbers?

By definition, ALL perfect squares are whole numbers!


Perfect squares?

Natural numbers which are the scales of some natural numbers are perfect squares


How are perfect squares and irrational squares same?

No. Perfect squares as the squares of the integers, whereas irrational squares as the squares of irrational numbers, but some irrational numbers squared are whole numbers, eg &radic;2 (an irrational number) squared is a whole number.


Numbers that have an odd number of factors are what?

perfect squares


What are numbers that have an odd amount of factors called?

perfect squares also known as square numbers taytay


Which numbers are not square number's?

In the complex field, every number is a square so there are no numbers that are not squares. If the domain is reduced to that of real numbers, any negative number is not a square. However, the term "square numbers" (not number's!) is often used to refer to perfect square numbers. These are numbers that are squares of integers. Therefore the squares of fractions or irrational numbers are non-squares.