Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- double x,o;
- for (x=-7.0; x<7.0;x+=0.001)
- {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;
- if ((o<0.01)&&(o>-0.01)) {
- cout <<"Uzrite je otvet! \n"; cout <<"Pri X="<<x<<"\n"<<o<<"\n";};}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement