210k views
1 vote
C++ the length of a rectangle is stored in a double variable named length, the width in one named width. write an expression whose value is the length of the diagonal of the rectangle.

User Jcm
by
7.9k points

1 Answer

6 votes
sqrt(pow(width,2) + pow(length ,2)
User Krishna V
by
7.8k points

No related questions found