| fiestaboy (3) | |
|
B. Circle in a Square Write a C++ program that will ask the user to enter the area of a square. Then the program will display the biggest area of a circle that will fit in a given square. Using math.h library is not allowed. | |
|
|
|
| MiiNiPaa (226) | ||
Can you use <cmath> then? :)Real answer: if "a" is a square side then: area of the square (as) = a * aarea of incircle (ac) = Pi * (a * a)/4Find quotent of incircle area and square area. (ac/as) Given as and knowing ac/as find ac | ||
|
Last edited on
|
||