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......
This is a discussion on Need some help! within the C++ Programming forums, part of the General Programming Boards category; The program attached compiles; This mass could produce 9e+014 Joules of energy. It could power 2.5e+009 100 watt light bulbs ...
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