Pafnytiu

таблица 5 - 12

Nov 17th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int down(float x){
  6. int n;
  7. if (pow(x,4)-1<=0 || x+1<=0) n=0;
  8. else n=1;
  9. return n;
  10. }
  11. float main()
  12.  
  13. { float x,a,b,y,h;
  14. cin>>a>>b>>h;
  15. for (x=a;x!=b+h;x+=h) {
  16. switch (down(x))
  17. {
  18. case 1:cout<<x<<" :"<<log(pow(x,4)-1)*(log(1+x))<<" "<<endl;break;
  19. case 0: cout<<x<<" :NOT FOUND"<<endl;break;}
  20. }
  21. system ( "pause" );
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment