What if you would make it: 42.0?
(I am going home now, I am finished working, might look in this topic in 1 hours again. Good luck.)
Type: Posts; User: Purple01
What if you would make it: 42.0?
(I am going home now, I am finished working, might look in this topic in 1 hours again. Good luck.)
I copy pasted your code in my program and these are your errors:
Your code
int momsAge= 42; dadsAge= 43;
int myAge= 22, sistersAge= 16;
int dogsAge= 6;
Remove the *
[*code]
code here
[*/code]
And also mind the capital letters.
dogsAge = not the same as: DogsAge.
Good luck. :)
Also I think by looking at you code, that dadsAge is not defined as an int/double.
Maybe you should make it:
double momsAge= 42;
double dadsAge= 43;
double myAge= 22;
double sistersAge=...
Can you copy paste the red text?
P.s. I adjusted my firts post.
What are the errors?
I think you do need to change these int's in doubles:
int momsAge
Becasue else you won't get out a double value below hen you calculate the mean.
Als try putting...