Computer Science Canada Boolean |
Author: | M49913 [ Sun Jun 07, 2009 6:23 pm ] | ||
Post subject: | Boolean | ||
What is it you are trying to achieve? I just need something to display if the inputted number is bigger or equal to 1 or less than or equal to 16 What is the problem you are having? Syntax error at < Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using <Answer Here> |
Author: | DtY [ Sun Jun 07, 2009 6:52 pm ] |
Post subject: | RE:Boolean |
</> comes before the = so: <= and >= not =< and => |
Author: | BigBear [ Sun Jun 07, 2009 7:08 pm ] |
Post subject: | RE:Boolean |
Are you using and array and referring to element 1 or character 1 of the string? |
Author: | zero-impact [ Sun Jun 07, 2009 8:03 pm ] |
Post subject: | RE:Boolean |
You have a logic error as well. Think about what it is saying. The number is greater than 1 OR less than 16? Dty is correct, it should be >= and <=. |
Author: | Kharybdis [ Sun Jun 07, 2009 9:04 pm ] | ||
Post subject: | RE:Boolean | ||
|