Write a c program to calculate the power

Calculate the power of a number

#include<math.h>
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
printf("enter the value of a and b");
scanf("%d%d",&a,&b);
c=pow(a,b);
printf("%d",c);
getch();
}

Post a Comment

0 Comments