C program to find power of any number

[ad_1]

C program to find power of any number
/**
 * C program to find power of any number
 */

#include 
#include  // Used for pow() function

int main()
{
    double base, expo, power;

    /* Input two numbers from user */
    printf("Enter base: ");
    scanf(
    printf("Enter exponent: ");
    scanf(

    /* Calculates base^expo */
    power = pow(base, expo);

    printf(

    return 0;
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com