This little program is originally from http://home.planetinternet.be/~esmee/calc01.html

I've corrected the code so it'll compile with newer gcc versions, and also did
a minor change to output formatting.

-Per yvind
