Inscribed Circle

Inscribed Circle - int main() { double s const double PI =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /****************************************************************************** Aria Mavvaji Lucas Devine Brachen Arnhart ******************************************************************************/ #include <iostream> #include <cmath> #include <iomanip> using namespace std
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int main() { double s const double PI = 3.14159 cout &lt;&lt; &quot;Enter the length of one side of the square: &quot; cin &gt;&gt; s cout &lt;&lt; endl &lt;&lt; fixed &lt;&lt; setprecision(2) &lt;&lt; &quot;The area of the shaded region is: &quot; &lt;&lt; ((1 - (PI / 4.0)) * pow( s , 2)) &lt;&lt;endl return 0 }...
View Full Document

Ask a homework question - tutors are online