It's a great way to learn though, math is pretty universal and clearly defined.
It covers conditional statements, math, data types (conversion/overflow maybe), string manipulation, etc.
No, a program that solves "-5 * 4(2+ -1) - 13" isn't very useful for 99.9999999% of us, but it forces him to learn some concepts of programming. (imo)