PHP速学视频免费教程(入门到精通)
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
here we will see the area of a square which in inscribed in one circle and that circle is inscribed in a hexagon. the side of the square is ‘a’. the radius of the circle is ‘r’, and the side of the hexagon is ‘a’. the diagram will be like below.
We know that the radius of a circle inscribed in a hexagon is −
Also the radius of the circle is half of the diagonal of the square. So −
Then we can say −
Then the area will be −
#include <iostream> #include <cmath> using namespace std; float area(float A) { //A is the side of the hexagon if (A <h2>输出</h2> <pre class="brush:php;toolbar:false;">Area is: 37.5
已抢7199个
抢已抢94716个
抢已抢14816个
抢已抢52062个
抢已抢194621个
抢已抢87259个
抢