Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float potega(float p, int w) { //p^w
- if (w == 0) {
- return 1;
- }
- else {
- return p = p * potega(p, --w);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement