first test - return 0 } //List of things wrong. 1. iostream...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> using namespace std int main(void) { cout <<"ME205 IS THE COOLEST!!!"<< endl return 0 } //Hey this is Brandon, and this is a simple program about circles. #include <iostream> #define pi 3.1415926 #define r 3 using namespace std int main(void) { cout <<"The area of a circle with radius of 3 is " << r*r*pi <<" The perimeter of a circle with radius 3 is "<< 2*pi*r << endl
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return 0 } //List of things wrong. 1. iostream is missing. 2. # is missing in front of define. 3. namespaces should be namespace. 4. void m a #include &lt;iostream&gt; #define Per 5.8774345 using namespace std int main(void) { cout &lt;&lt;&quot;Approximate value of Per = &quot; &lt;&lt; Per &lt;&lt; endl return 0 } Sheet1 Page 2 // print ME205 IS THE COOLEST!!! to the console...
View Full Document

Page1 / 2

first test - return 0 } //List of things wrong. 1. iostream...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online