Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double m , n ,x , g , p1=1 ,p2=1 ,p3=1,k;
- cout << "Jep vleren e X :" ;
- cin >> x;
- cout <<"Jep vleren e m :";
- cin >>m;
- cout <<"jep vleren e n: ";
- cin >> n;
- if (x+1<4.5)
- {
- for (int i=2;i<=(n+1);i=i+2)
- {
- p1=p1 *(i+x);
- g=2*x-3*p1;
- }
- cout << "g="<<p1<<endl;
- }
- else if (x+1==4.5)
- {
- p2=4*(x*x)+3*x+1;
- cout <<"g="<<p2<<endl;
- }
- else if (x+1>4.5)
- {
- for (int k=1;k<m;k++)
- {
- p3=p3*(k+(x/3));
- p3=(x/2)+4*p3;
- cout << "g="<<p3;
- };
- };
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement