Taking input from user with constraints

in given question it is asked to take input value
-100<= a, b , c >=100. how convert it into code