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...
Type: Posts; User: Norm
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...
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...
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.