how do i check if a integer is positive ?

Ddaniel19/10/2022
how do i check if a integer is positive ?
JJester9/10/2022
if (x >= 0)
Ddaniel19/10/2022
thx
JJester9/10/2022
"if number is greater or equal to 0"
Ddaniel19/10/2022
how do i check if num has only one letter
JJester9/10/2022
:HmmNoted:
JJester9/10/2022
this is starting to sound like homework
PPobiega9/10/2022
Why don't you experiment a bit?
Ddaniel19/10/2022
it kind of is
JJester9/10/2022
think about it, which numbers are only 1 letter?
Ddaniel19/10/2022
like what (num<=10)?
JJester9/10/2022
10 is 2 letters
Ddaniel19/10/2022
yeah i know
JJester9/10/2022
so what is it then?
Ddaniel19/10/2022
oh
Ddaniel19/10/2022
num<10
BBuddy9/10/2022
Think logically ..

if num is EQUAL or LESS than 10
BBuddy9/10/2022
is exactly (num <= 10)
Ddaniel19/10/2022
yeah
JJester9/10/2022
nvm
Ddaniel19/10/2022
why was there false both times
JJester9/10/2022
bcuz ive made a mistake
Ddaniel19/10/2022
alright
TTheRanger9/10/2022
num >= 0 && num < 10
Ddaniel19/10/2022
yeah wait your right
Ddaniel19/10/2022
it can be a neagtive 100
Ddaniel19/10/2022
but it just cant be a postive 10