how can i check if the number is positive or not by using switch statement
Use the % operator in the SWITCH statement. You know what values you will get so use those values in the CASE statements.
Walt, note that I am not the OP. I am getting tempted to send you a check for $85.
I cannot see how use the modulo operator is going to help much with determining whether a number is positive or not in a switch statement. This seems like an obvious case where an if statement make sense and a switch statement does not. What am I missing?