Using recursion write a program where read two numbers a and b, a is raised to the power b.

In programming languages, if a program allows you to call a function inside the same function, then it is called a recursive call of the function. This program is in the c language


#include <stdio.h>

int main() {
    int a,b;
    printf("Enter the base\n");
    scanf("%d",&a);
    printf("Enter the exponent\n");
    scanf("%d",&b);
   // power(a,b);
   printf("%d(%d%d)",power(a,b));
}
int power(int b,int e)
{
    if(e==0)
        return 1;
    else 
        return (b*power(b,e-1));
}