What is the best way to check if variable is bigger than some number using switch statement? Or you reccomend to use if-else? I found such an example:
int i; i
If one variable's value is used, use switch. If multiple variables are in play, use if. In your stated problem, it should be if.