Virajsinh

Odd_Even_OS_Script

Sep 24th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. echo -n "Enter Number :"
  2. read r
  3.  
  4. t=`expr $r % 2`
  5.  
  6. if [ $t -eq 1 ]
  7. then
  8. echo "Number is Odd"
  9. else
  10. echo "Number is Even"
  11. fi
Add Comment
Please, Sign In to add comment