Please create a program to find the formula value by using c++. c=(2x + 3y) * (2z-4y) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Please create a program to find the formula value by using c++. c=(2x + 3y) * (2z-4y)

help me guys

10th Mar 2018, 4:33 PM
surya pro
surya pro - avatar
2 Answers
+ 9
Firstly ,U need to initialize x,y and z thats a duplicate question //some1 posted yesterday & U reposted it
10th Mar 2018, 5:01 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
double c(const double x, const double y, const double z) { return (2*x + 3*y) * (2*z - 4*y); }
10th Mar 2018, 4:42 PM
Timon Paßlick