Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <string>
- using namespace std;
- int main ()
- {
- double u, v;
- string str;
- cout << "Line 1: 2 to the power of 6 = " << pow (2,6) << endl;
- u = 12.5;
- v = 3.0;
- cout << "Line 4: " << u << "to the power of " << v << " = " << pow (u, v) << endl;
- cout << "Line 5: Square root of 24 = " << sqrt (24.0) << endl;
- u = pow(8.0, 2.5);
- cout << "Line 7: u = " << u << endl;
- str = "Programming with C++";
- cout << "Line 9: Length of str = " << str.length () << endl;
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement