If you haven't already done so, complete the class 18 assigment and submit it.
When you are done save circles.c
to another file called circles2.c
. Modify it so that the program will run a maximum
of 5 calulcations - i.e. immediately after the program performs its fifth calculation it exits. It should still also exit
if the user at any point chooses not to continue.
The program should inform the user if it is exiting because it's reached the maximum calculations.
Enter radius1: 1
Enter radius2: 3
The difference in area is: 25.120000
Enter y to calculate another or any other key to exit.
y
Enter radius1: 4
Enter radius2: 6
The difference in area is: 62.800000
Enter y to calculate another or any other key to exit.
y
Enter radius1: 2
Enter radius2: 5
The difference in area is: 65.940000
Enter y to calculate another or any other key to exit.
y
Enter radius1: 9
Enter radius2: 9.5
The difference in area is: 29.045000
Enter y to calculate another or any other key to exit.
y
Enter radius1: 10
Enter radius2: 10
The difference in area is: 0.000000
Maximum calculations reached, Goodbye!