Need some help!

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 ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Exclamation Need some help!

    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......
    Attached Files Attached Files

  2. #2
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    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

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21