find power of a number

#include<stdio.h>
#include<math.h>
int main()
{
    double x,y,p;
    scanf("%lf%lf", &x,&y);
    p=pow(x,y); 
    printf("Power is: %lf", p);
    return 0;
}
Input:
2 3
Output:
8

No comments:

Post a Comment