fork download
  1. #!/bin/sh
  2.  
  3. echo "Enter a number:"
  4. read n
  5.  
  6. r=$((n%2))
  7.  
  8. if [ $r -eq 0 ]
  9. then
  10. echo "The number is Even"
  11. else
  12. echo "The number is Odd"
  13. fi
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Enter a number:
The number is Even