answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is the answer to pow double your treasure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you use pow function in c?

Either you can use the pre defined function "pow" in the <math.h> header file OR you can make a user defined function to do the same operation. 1.Using the pre defined function in <math.h> : The function is a of datatype double and accepts only values in double. So, prototype declaration is: double pow(double x,double y); Pass the values to the function and it'll return the value of xy. In the calling function it can be declared as: double power=pow(x,y); 2.USER DEFINED FUNCTION: double power(double x,int y); int main() { double x,result; int y; cout<<"\nEnter the base: "<<; cin>>x; cout<<"\nEnter the exponential power: "; cin>>y; result=power(x,y); cout<<"The result of x to the power y is: "<<result; return 0; } double power(double x,int y) { for(int i=0;i<=y;i++) { x*=x; } return x; }


A raised to power b in C programming?

#include <math.h> double a, b, result; result = pow (a, b);


How would you use the functions sin pow sqrt?

First of all you have to insert the following line in your code:#include sin is defined function which takes argument fo double type and returns double type:sin(x)If you write something like:double x, y;cout > x;cout


How do you write a program in c to compute the power of a number without using the mathh library?

There is a function which can do it for you. You have to include math.h in headers. And then use the function pow(x, y) which returns a value of type double (x and y are double too).pow(x, y) = x to the power of y.


How do you find the square root of a number in C?

You write a function that evaluates the square root of its argument and returns the result to the caller.You can also use the run-time library functions in math.h ...double sqrt (double x);double pow (double x, (double) 0.5);

Related questions

Explain use of pow in c language?

The general form of the pow function is: double pow(double base, double exp); Which returns the value of baseexp This function may be overloaded to allow for different parameter and return types, but the basic function is the same.


What are the release dates for His Double Treasure - 1911?

His Double Treasure - 1911 was released on: USA: 17 March 1911


How do you find out the square root of a number in java?

Use:public static double pow(double a,double b)here b = 0.5


What is the Simple definition of power in c basic program?

A mathematical function declared in math.h: double pow (double b, double q);


When was Pow Pow created?

Pow Pow was created in 2005.


How do you use pow function in c?

Either you can use the pre defined function "pow" in the <math.h> header file OR you can make a user defined function to do the same operation. 1.Using the pre defined function in <math.h> : The function is a of datatype double and accepts only values in double. So, prototype declaration is: double pow(double x,double y); Pass the values to the function and it'll return the value of xy. In the calling function it can be declared as: double power=pow(x,y); 2.USER DEFINED FUNCTION: double power(double x,int y); int main() { double x,result; int y; cout<<"\nEnter the base: "<<; cin>>x; cout<<"\nEnter the exponential power: "; cin>>y; result=power(x,y); cout<<"The result of x to the power y is: "<<result; return 0; } double power(double x,int y) { for(int i=0;i<=y;i++) { x*=x; } return x; }


How many World War 2 POW were there?

347568436587432 pow 347568436587432 pow 347568436587432 pow 347568436587432 pow 347568436587432 pow


What is the duration of Pow Pow?

The duration of Pow Pow is 1.5 hours.


A raised to power b in C programming?

#include <math.h> double a, b, result; result = pow (a, b);


Can someone tell you a onomatopoeia on The Cay?

Onomatopoeia example: "Pow, pow, pow!"


How would you use the functions sin pow sqrt?

First of all you have to insert the following line in your code:#include sin is defined function which takes argument fo double type and returns double type:sin(x)If you write something like:double x, y;cout > x;cout


How do you write a program in c to compute the power of a number without using the mathh library?

There is a function which can do it for you. You have to include math.h in headers. And then use the function pow(x, y) which returns a value of type double (x and y are double too).pow(x, y) = x to the power of y.