C++ Programming Code Examples C++ > Recursion Code Examples Find Power of a Number Using Recurtion Find Power of a Number Using Recurtion #include<iostream.h> #include<conio.h> void main() { int pow(int,int); int a,b,r; clrscr(); cout<<"Enter base and power: "; cin>>a>>b; r=pow(a,b); cout<<"pow: "<<r; getch(); } int pow(int x,int y) { if(y==0) return(1); else { return(x*pow(x,y-1)); } }