helpdesk talks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
141 B

  1. #!/bin/bash
  2. echo "Enter a Number."
  3. read n
  4. num=$(expr $n % 2)
  5. if [ $num -eq 0 ]
  6. then
  7. echo "Even Number."
  8. else
  9. echo "Odd Number."
  10. fi