The program attached compiles;
This mass could produce 9e+014 Joules of energy.
It could power 2.5e+009 100 watt light bulbs for an hour.
The zero before 14, and 09 aren't wanted......
The program attached compiles;
This mass could produce 9e+014 Joules of energy.
It could power 2.5e+009 100 watt light bulbs for an hour.
The zero before 14, and 09 aren't wanted......
Look your help files for formatting cout output. Or use printf() included in <stdio.h>.
Making error is human, but for messing things thoroughly it takes a computer