- 2

Write a program to input three and get their sum,product and average

15th Oct 2020, 6:26 AM
Nisha Toor
Nisha Toor - avatar
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 .
15th Oct 2020, 6:48 AM
AS Raghuvanshi
AS Raghuvanshi - avatar
+ 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;
15th Oct 2020, 6:42 AM
AS Raghuvanshi
AS Raghuvanshi - avatar
15th Oct 2020, 6:28 AM
Филилеев Данил Денисович
Филилеев Данил Денисович - avatar