Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- double rekursija(double x, int n);
- int main()
- {
- cout << rekursija(5, 2);
- return 0;
- }
- double rekursija(double x, int n){
- if (n==256){
- return pow(x,2) + n / pow(x,2);
- }
- else{
- return pow(x,2) + n / rekursija(x, pow(n,2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement