Advertisement
Loloped

Алгебра, 10 номер

May 16th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. double x,o;
  10. for (x=-7.0; x<7.0;x+=0.001)
  11. {o=3.0*pow(x,5) - 10.0*pow(x,4) - 21.0*pow(x,3) - 19.0*pow(x,2)-6.0*x + 5.0;
  12. if ((o<0.01)&&(o>-0.01)) {
  13. cout <<"Uzrite je otvet! \n"; cout <<"Pri X="<<x<<"\n"<<o<<"\n";};}
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement