- 2
Write a program to input three and get their sum,product and average
3 Answers
+ 5
Nasif Rahman actually i seen his profile he is beginner and all peoples downvote his Question so i thought i should give solution once .
+ 4
First rule of discussions forum before post any questions you have to show your attempt without your attempt no-one will help you.
See this is solution
int a,b,c,sum, product;
float average;
cin>>a>>b>>c;
cout<<"input values are "<<"a="<<a<<endl<<"b="<<b <<endl<<"and c="<<c;
sum=a+b+c;
product=a*b*c;
average=a+b+c/3;
cout<<"this is sum"<<sum<<endl;
cout<<"product"<<product<<endl;
cout<<"average"<<average;
0
OK