|
-
October 26th, 2010, 03:10 PM
#21
Re: Help wit C++
 Originally Posted by ade161
the syntax for the pow function is:
pow(x,y)
9. double num1 = 0;
double num2 = 0;
double answer = 0;
cout<<”Enter num 1 “;
cin>>num1;
cout<<”Enter num 2 “;
cin>>num2;
answer = pow(num1,3) + sqrt(num2);
Better. He doesn't ask you to input the numbers, but I don't imagine he'll take any points off if you do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|