answersLogoWhite

0

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.

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

Write a java that computes the value of 2?

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Compute the Number of seconds in a year in c program?

int main (void) { printf ("%ld\n", 365L*24*60*60); } or int main (void) { printf ("%ld\n", 366L*24*60*60); }


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


Write the full program for the quadratic equation in COBOL?

Identification division. Program-id. Quadratic. Environment division. Data division. Working-storage section. 01 a pic 9(3) value 0. 01 b pic 9(3) value 0. 01 c pic 9(3) value 0. 01 d pic 9(3) value 0. 01 e pic 9(3) value 0. 01 f pic 9(3) value 0. 01 g pic 9(3) value 0. 01 h pic 9(3) value 0. 01 x1 pic 9(3) value 0. 01 x pic z(3).z(2) value 0. 01 x2 pic 9(3) value 0. 01 y pic z(3).z(2) value 0. Procedure division. Display "Written by Martin O. Egua, but not complete". Display "Quadratic equation solver for three values a, b & c" Display "Enter a number: " Accept a. Display "Enter the second number: " Accept b. Display "Enter the last number: " Accept c. compute d = (b * b) compute e = 4 * a * c compute f = 2 * a compute g = d - e compute h = function sqrt (g). compute x1 = (-b) + h compute x = x1 / f Display "X = " x compute x2 = (-b) - h compute y = x2 / f Display "Y = " y Display "Send the accurate program". Stop run.

Related Questions

A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


What do you use to compute the total number of a 4-letter names with nonrepeating letters?

permutation without replacement


Write a java that computes the value of 2?

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:System.out.println("Your number is " + 2);


Can you give me a program that will compute number 1 to 5?

nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.


How can you access Jstor without a login?

You can access JSTOR without a login by visiting your local library or university library, many of which provide free access to JSTOR for their patrons. Some public libraries also have remote access options if you have a library card. Additionally, JSTOR offers a limited number of free reads per month for certain articles through their "Register & Read" program, allowing users to access content without a subscription.


7 Write a C program to compute the factorial of a number using for loop?

int factorial(int n) { int i; int f=1; for(i=2;i<=n;++i) f*=i; return f; }


How do you compute fuel consumption?

number of miles driven on a tank / number of gallons to replenish that tank.


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Program in perl to compute the number of lines in a file?

You can compute the number of lines in a file using Perl with the following code snippet: my $filename = 'your_file.txt'; # Replace with your file name open(my $fh, '<', $filename) or die "Could not open file '$filename' $!"; my $line_count = 0; $line_count++ while <$fh>; close($fh); print "Number of lines: $line_count\n"; This script opens the specified file, reads through it line by line, increments the line count, and prints the total number of lines.


What does least squares mean?

Compute to the smallest fraction, reduce to the least number


Compute the Number of seconds in a year in c program?

int main (void) { printf ("%ld\n", 365L*24*60*60); } or int main (void) { printf ("%ld\n", 366L*24*60*60); }


What is a program for finding sqareroot of a number without using functions?

you read the book how to solve by dromy.