Average

Description:

Write a program using class to find average of five numbers. Test Case 1 Input (stdin) 1 2 3 4 5 Expected Output 3 Test Case 2 Input (stdin) 10 9 8 7 6 Expected Output 8

Program :

#include <iostream>

using namespace std;

int main()

{

int a,b,c,d,e,avg;

  cin>>a>>b>>c>>d>>e;

  avg=(a+b+c+d+e)/5;

  cout<<avg;

return 0;

}