121k views
5 votes
The following statement should determine if count is within the range of 0 through

100. What is wrong with it?

if (count >= 0 || count <= 100)

1 Answer

0 votes

Replace the OR operator with an AND operator.


Aka

Replace || with &&

User Minghua
by
8.4k points

No related questions found