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();
}
#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();
}
0 Comments