>>1455692three issues;
1. you declare variables on lines 5 and 6, but you don't initialize them. That means that in some cases, like yours, the number stored in the variables is some leftover garbage in RAM. Solution is easy, after creating a variable, assign a zero to each of them.
2. On line 13, you output value stored in MarsWeight. Then on line 15, you make your calculation. The outocme of your calculation never sees the light of day. That's why the number you see in the output is the random garbage in RAM.
3. I'm not really sure how it is in C++, but you should probably divide EarthWeight by "3.0" in stead of "3". The reason is if you want to work with decimals, you need to divide by a number containing decimals, NOT a whole number.