In C++, how do you compute the side length of a square whose area is stored in the variable area? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In C++, how do you compute the side length of a square whose area is stored in the variable area?

31st Jan 2017, 10:09 PM
Zeyad Sharo
Zeyad Sharo - avatar
2 Answers
+ 1
sqrt(area); /* header: <cmath> */
31st Jan 2017, 10:16 PM
Robobrine
Robobrine - avatar
- 1
thank you for answering
1st Feb 2017, 7:52 AM
Zeyad Sharo
Zeyad Sharo - avatar