| princemoon (11) | |||
|
Write down C statements to perform the following operations. Take x, y and z from the user: z = 4.2(x+y)5/z – 0.52x/(y+z) / (x+y)
How to implement the code for this? | |||
|
Last edited on
|
|||
| vichu8888 (176) | |
|
1. declare three double variables x,y,z 2. prompt user for input for x and y 3. cin>>x>>y; 4. put your formula here(but insert * for multiplication whereever applicable. remaining are same) 5. cout<<z; | |
|
|
|
| princemoon (11) | |||
It's showing error on line 7 "statement missing" please help... | |||
|
Last edited on
|
|||
| vichu8888 (176) | |
include ; at the end of line 6 editIm sure your are learning C++ only for few days(not more than 5). Am I? | |
|
Last edited on
|
|