built math function to print simple math excercises from called function