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 << "Enter the length of one side of the square: " cin >> s cout << endl << fixed << setprecision(2) << "The area of the shaded region is: " << ((1 - (PI / 4.0)) * pow( s , 2)) <<endl return 0 }...
View Full Document

This note was uploaded on 04/14/2008 for the course CSI 1430 taught by Professor Aars during the Spring '08 term at Baylor.

Ask a homework question - tutors are online