If the int
number are lower than 0
, let’s say -3
it’s out of range, also if the number are higher than 100
, lets say 104
the function will return false.
Let’s say enter 104
wich is not in the specified range the verify
function will get that number, check if either the number are lower than 0
or higher than 100
. In our case the number is higher than 100
and the verify funtion will return FALSE
.
In the if(verify(x))
you will have a false if-statement because the verify function returned that. We will go directly to the else
statement and do the code in there.
If you select a number that is in range, for example 33
the verify function will return TRUE
and the if-statement in your main
will be TRUE
.
2
solved Please be understanding, I am new to this. Can some please explain the verify function? [closed]