#include<stdio.h>
#include<conio.h>
//function definition power
int pow(int a,int n)
{
if(n==0)
return 1;
else
return a*pow(a,n-1);
}
void main()
{
int a,n,p;
printf("Enter number and it's power");
scanf("%d%d",&a,&n);
p=pow(a,n); //function calling
printf("result=%d",p);
getch();
}
12 Comments
It's the best
ReplyDeleteGood
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVery nice
ReplyDelete🤜🤛....NICE BLOGS..
ReplyDeleteNICE BLOG RAJNISH SIR .
ReplyDeleteSHAILESH KUMAR.
Very good sir
ReplyDelete👍👍
ReplyDeleteBahoot khub sir
ReplyDeleteit help me thanks
ReplyDeleteExcellent
ReplyDeleteVeri nice 👍👍and all the best
ReplyDelete