cin - cout << "pow...

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

View Full Document Right Arrow Icon
#include <iostream> using namespace std; int main() { int x, y; cout << "x: "; cin >> x; cout << "y: "; cin >> y; cout << "sum " << x + y << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout &lt;&lt; &quot;pow &quot; &lt;&lt; pow(x, y) &lt;&lt; endl; cout &lt;&lt; &quot;1/x &quot; &lt;&lt; 1 / x &lt;&lt; endl; cout &lt;&lt; &quot;1.0/x &quot; &lt;&lt; 1.0 / x &lt;&lt; endl; }...
View Full Document

Ask a homework question - tutors are online