c program to find x raised to y
c program to find power of a number
#include#include
void power(int,int);
void main()
{
int a,b;
clrscr();
printf("Enter the values of no &power:");
scanf("%d%d",&a,&b);
power(a,b);
getch();
}
void power(int a,int b)
{
int i,res=1;
for(i=1;i<=b;i++)
{
res*=a;
}
printf("\n Result of %d raise to %d is :%d",a,b,res);
}