Discuss I am a beginner, help required.... plz in the C Programming forum on Dev Shed. I am a beginner, help required.... plz C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Posts: 3
Time spent in forums: 1 h 34 m 46 sec
Reputation Power: 0
Look at this
#include <iostream.h>
main()
{
int x,y,z;
cin>>x>>y;
z=4.2*x+y*5/z-0.52*x/y+z/x+z
cout<<z;
return 0;
}
Still statement missing, will you help what to do?
Posts: 6,129
Time spent in forums: 2 Months 2 Weeks 3 Days 19 h 23 m 10 sec
Reputation Power: 1949
As they keep telling you, pay attention to semicolons and to how you end statements in C++.
Also, from your problem statement, pay attention to grouping symbols, which is what parentheses are. Grouping symbols appear in your problem statement, but not in your attempts to code it.
And finally, read the problem statement! In particular, read this: Take x, y and z from the user:
Why then do you only ask for x and y?