arithmatic with awk

hi, i am trying some awk arthmatic calculation,i have a problem if any one can help
let say if i have a file
exm.txt
3 + 2
3 * 2
3 / 2
3 - 2

the output expected is
awk -f exm.awk exm.txt
3 + 2 = 5
3 * 2 = 6
3 / 2 = 1.5
3 - 2 = 1

i simply used exm.awk
{
print $1 " + " $3 "= " $1 + $3

print $1 " * " $3 "= " $1 * $3

print $1 " / " $3 "= " $1 / $3

print $1 " - " $3 "= " $1 - $3
}
it shows me the result along with other unnecessary calculation...any suggestions :o

thank you and regards...

take a look at this thread from c.l.a

awk '{ans=""
      if ($2=="+") {ans=$1 + $3}
      if ($2=="*") {ans=$1 * $3}
      if ($2=="-") {ans=$1 - $3}
      if ($2=="/") {ans=$1 / $3}
      printf $0, ans } 
      ' exm.txt

This looks like schoolwork. The forum explicitly forbids schoolwork.

ya it worked fine..thank you guys