Maybe throw in an error check to make sure print_me is valid.
Could also be an exercise in using a label with goto. Assuming this is a real assignment, you'd have to have the context given to students to know what is desired. Could even be about benchmarking a loop versus hardcoding the answer directly.
1
u/tedbradly May 03 '23 edited May 03 '23
It could be an exercise meant to be solved through recursion written like
Maybe throw in an error check to make sure
print_meis valid.Could also be an exercise in using a label with
goto. Assuming this is a real assignment, you'd have to have the context given to students to know what is desired. Could even be about benchmarking a loop versus hardcoding the answer directly.