math program using std::cout