Function and Examples

Final function of exercise 120