C Program To Calculate Area of a Square using its Diagonal
Satish B
http://technotip.com/7077/c-program-to-calculate-area-of-a-square-using-its-diagonal/
Lets write a C program to find area of a square by using length of its diagonal. We ask the user to input the length of its diagonal.
Formula To Calculate Area of Square using its diagonal area = ( diagonal x diagonal ) / 2.0 OR area = ( diagonal x diagonal ) * 0.5
Note: All the sides of a square are equal. Both the diagonals of the square are of equal length.
Expected Output for the Input User Input: Enter length of diagonal of a Square 15.2
Output: Area of the Square is 115.52
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=7TCCRv174iE
4246309 Bytes