IfMath3.ksh

#!/bin/ksh

# IfMath3.ksh

# This program introduces the "else"
# inside of an "if" statement.

# - Jim

print -n "Enter the number of children you have: "
read NumberOfChildren

if (( NumberOfChildren == 0 ))
then

  print "You get to go out on Friday nights."

else

  print "Bummer!"
  print -n "Things could be worse.  "
  print "You could be a Cubs fan."

fi

print "Hi"