admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Calculate Diagonal of a rectangle

Sunita Chhetry
110 Posts

WAP to calculate and display the diagonal of a rectangle by accepting height and width d=√(h2+w2)

Input

h=10

w=20

Output=22.36

 

Explanation

√(102 + 202 )= √500=22.36

Published By : Sunita Chhetry
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin