WAP To Calculate a power b by using pow() function


#include<math.h>
void main()
{
int a,b,power;
clrscr();
printf("Enter the value of a and b");
scanf("%d%d",&a,&b);
power=pow(a,b);
printf("%d",power);
getch();
}

No comments:

Post a Comment