Calculator program with output