Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float licz(int n){
- if(n==1) return -3;
- return 3*licz(n-1)+1;
- }
- main(){
- int n;
- cin>>n;
- cout<<licz(n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement