Computer Science, asked by harinee98, 6 months ago

Rajiv wants to compare his height with his brother’s and sister’s

height. Guide him in writing the correct declaration statement.
this is c++ question​

Answers

Answered by vyona26
0

Answer:

i don't understand your question

Explanation:

Sorry

Answered by onukogumess
0

Answer:

int main()

{

   int height [2];

   int height_sum = 0;

   float average;

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

   {

     cout << "Enter the height for " << i + 1 << " Sibling : ";

     cin >> height[1];

      }

   for(int i = 0; i<=9; i++)

   {

     height_sum = height_sum +  heights[i];

   }

   average =  height_sum / 10.0;

   cout<<"Average height is : "<< average;

 

   return 0;

}

Explanation:

Similar questions