mul.sh 141 B

1234567891011121314
  1. #!/bin/sh
  2. if [ $# -ne 2 ] ; then
  3. echo "usage: $0 <x> <y>"
  4. exit
  5. fi
  6. x=$1
  7. y=$2
  8. r=`echo "$x * $y" | bc`
  9. echo "x;y;r"
  10. echo "$x;$y;$r"