I need to improve this statement by correcting it or reducing it
if (0 <= age <= 100) // age is between 0 and 100)
I am completely confused by the fact that I spent 20 minutes on the question. It seems very simple, but the only revision I could think of is
if (0 <= age && age <= 100)
and that doesn't seem right. Did I just miss something obvious? Can someone help me?
thanks
source share