Call sqrt four times

The code in the main function in Listing 1:

The output

The square root value returned by the function is displayed each time it is called, producing the screen display shown below:

3.87298
4.47214
5
5.47723