Computer Science, asked by sreehari611, 6 months ago

write a C++ program to find average of 3ce scores?

please answer to this question friends​

Answers

Answered by shashikantameher54
0

Explanation:

#include<iostream>

using namespace std;

int main()

{

// declare variables

double num1, num2, num3;

double sum, average;

// take input from end-user

cout << "Enter three Numbers :: ";

cin >> num1 >> num2 >> num3;

// calculate sum value

sum = num1 + num2 + num3;

// calculate average value

average = sum / 3;

// display result

cout << "Sum = " << sum << endl;

cout << "Average = " << average << endl;

return 0;

}

Answered by praseethanerthethil
1

Answer:

The average value is calculated by the sum of variables divided by the number of variables. Here, the number of variables is three. So, average = sum / 3 calculates the average value.

Similar questions
Physics, 2 months ago