Whats is the function of exit()?

Hello, Steven.

I read and run the code that you shared and I understand it clearly.

Thanks for your answer and time!