#include<iostream>
#include<conio.h>
using namespace std;
int main()
{ int a,b,c,d,sum,mul;
float avg;
cout<<"Enter 4 numbers to get there sum,product & avg"<<endl;
cin>>a>>b>>c>>d;
sum=a+b+c+d;
mul=a*b*c*d;
avg=sum/4;
cout<<"sum is = "<<sum<<endl;
cout<<"product is ="<<mul<<endl;
cout<<"avg is = "<<avg;
getch();
}
No comments:
Post a Comment