Thread: Typing decimal number and cover it binary number!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    278
    1. Congrats for using CODE tags. However, the purpose of using CODE tags is to retain whitespace and the purpose of whitespace is to make the code easier to follow. Your whitespace is pretty bad - nothing lines up.

    2. Some will tell you your main should be

    int main (void), not
    void main ()


    3. You test for number == 0 twice. Why?
    Last edited by mike65535; 04-16-2011 at 01:56 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Number to Decimal
    By theCanuck in forum C++ Programming
    Replies: 12
    Last Post: 02-09-2011, 11:25 PM
  2. Number of digits in a decimal number
    By maverix in forum C Programming
    Replies: 7
    Last Post: 11-04-2007, 12:12 PM
  3. how to remove zero after decimal number
    By abhay_m8 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2007, 02:30 AM
  4. Replies: 9
    Last Post: 10-07-2006, 05:37 AM
  5. How to get the decimal part of a number...
    By Caldus in forum C++ Programming
    Replies: 13
    Last Post: 06-12-2006, 06:41 PM