Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int x,y;
- int potR(int x,int y){
- if (y==0) return 1; else return potR(x,y-1)*x;
- }
- int main(){
- cin>>x;
- cin>>y;
- cout<<potR(x,y);
- getchar();getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment