// Code is given below
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,e,avg;
cout<<"enter the 1st number :";
cin>>a;
cout<<"enter the 2nd number :";
cin>>b;
cout<<"enter the 3rd number :";
cin>>c;
cout<<"enter the 4th number :";
cin>>d;
cout<<"enter the 5th number :";
cin>>e;
avg = ( a + b + c + d + e )/5;
cout<<"Average is = "<<avg<<"\n\n\n";
return 0;
}
No comments:
Post a Comment
thnx for visiting my blog