- #1
ineedhelpnow
- 651
- 0
num is a 3-digit positive integer, such as 100, 989, or 523, but not 55, 1000, or -4.
For most direct readability, your expression should compare directly with the smallest and largest 3-digit number.
so far i came up with
but i don't know how to write something that represents a 3 digit positive number?
Edit: nevermind. i figured it out to be && (num <= 999)
For most direct readability, your expression should compare directly with the smallest and largest 3-digit number.
Code:
if ( (num >= 100)<STUDENT CODE> ) {
...
}
so far i came up with
Code:
((num >= 100) && (?))
Edit: nevermind. i figured it out to be && (num <= 999)