Search:

Type: Posts; User: Norm

Search: Search took 0.22 seconds.

  1. Replies
    5
    Views
    989

    Re: Whats wrong with my code

    0 means it is an octal number, not a decimal number
    010 octal = 8 decimal
    If the code enters a decimal number like 307 and compares it to the octal number 0307, they have different values.
    Execute...
  2. Replies
    5
    Views
    989

    Re: Whats wrong with my code

    How was the code changed? Were ALL the octal numbers rewritten to be decimal?

    One problem in the code is there needs to be an else at the end of the if/else if chain that prints out a message...
  3. Replies
    5
    Views
    989

    Re: Whats wrong with my code

    The compiler treats numbers that begin with a 0 as being octal.
    The valid octal digits are 0 to 7. 0308 has an 8 that is not a valid octal digit.
Results 1 to 3 of 3