Thanks a lot, quzah.
Let's try to write a program to calculate mean of four real numbers (I have read somewhere that you have to be very specific about every detail; so I specifically mentioned "real numbers", not "integers"). The general formula for this mean is: Mean = a+b+c+d/4
At the top I would write the following (although quzah mentioned that ".h" is not included, however I would use it some time)
#include <iostream.h>
#include <stdio.h>
void main()
{
Then, I have read that you have make declarations about the variable - i.e. what they actually are, are they integers, fractions, etc.). "real numbers" are declared by "float":
float a, b, c, d, Mean
Then, from whatever small bit of information I have about C++ I have I think you write the main program after "cin>>".
The partial code in my opinion would be:
Code:
#include <iostream.h>
#include <stdio.h>
void main ()
{float a, b, c, d, Mean;
cin>>
I humbly request you to help me how to complete this small program. I would like to these lines appear in the input area: "Enter the four numbers", and in the output area I would like this: Mean for a=(whatever value is input), b=(whatever value is input), c=(whatever value is input), d=(whatever value is input) is (whatever output is). Kindly help me with this. It would be nice of you.
Best wishes
Jack
PS: I see Elysia has also replied. Thanks, Elysia. Okay, next time I wouldn't use those things.