Simple program for calculating various mathematical problems