Let the caller print

Functions or methods are usually considered units of computation. They take the arguments, apply algorithms to them, compute the results, and return them to the caller.

Get hands-on with 1200+ tech skills courses.