You are viewing a single comment's thread. Return to all comments →
read -p "Enter X: " X ; ((X >= -100)) || echo error read -p "Enter Y: " Y ; ((Y <= 100 && Y != 0)) || echo error
This would check the constraints and print error if any.
Seems like cookies are disabled on this browser, please enable them to open this website
The World of Numbers
You are viewing a single comment's thread. Return to all comments →
This would check the constraints and print error if any.