Execution steps:
Whenever the program is executed, the steps below will take place:
- The script calcandprintarea starts executing.
- The calcandprintarea calls the readradius function:
- readradius executes and returns to the radius.
- calcandprintarea resumes executing and calls the calcarea function, by passing the radius to it:
- calcarea executes & returns the area.
- The calcandprintarea resumes executing and calls the printarea function, passing both the radius & the area to it
- The printarea executes and prints.