in reply to bc.exe - trivial one-liner
I personally am a fan of perl -ple'$_="> ".eval'. This is probably the most common script I write. Of course, your code above has the advantage of being transferrable to a system without Perl.
In Section
Cool Uses for Perl