Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <cmath>
- #include <math.h>
- #include <iostream>
- using namespace std;
- void rek_r(double mas[]);
- int main() {
- double mas[256];
- mas[0]=0.5;
- mas[1]=0.25;
- rek_r(mas);
- return 0;
- }
- void rek_r(double mas[]){
- int i;
- for(i=2;i<15;i++){
- mas[i]=(tanh(mas[i-1]*mas[i-2]))/i;
- cout << "mas["<< i << "] - " << mas[i] << endl;
- }
- if(mas[i]>mas[i-1]) cout << "Ryad rashod";
- else cout << "Ryad shod";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement