Given an number d which is length of diagonal of a square, find its area.
Input : d = 10 Output : Area = 50 Input : d = 12.2 Output : Area = 74.42
Area of a square can be computed as (d * d)/2. Please see below image for details.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Area of a Square | Using Side, Diagonal and Perimeter
- Area of hexagon with given diagonal length
- Calculate area of pentagon with given diagonal
- Program to calculate area of a rhombus whose one side and diagonal are given
- Sum of non-diagonal parts of a square Matrix
- Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given
- Length of the Diagonal of the Octagon
- Find length of Diagonal of Hexagon
- Length of Diagonal of a n-sided regular polygon
- Program for Area Of Square
- Area of a Circumscribed Circle of a Square
- Program for Area Of Square after N-th fold
- Sum of Area of all possible square inside a rectangle
- Program to find the area of a Square
- Area of a leaf inside a square
- Area of square Circumscribed by Circle
- Area of the Largest square that can be inscribed in an ellipse
- Area of a largest square fit in a right angle triangle
- Area of largest semicircle that can be drawn inside a square
- Program to find the surface area of the square pyramid
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.