Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int i=-2;
- int wynik;
- while(i<=2)
- {
- if(cos(i)+3*i == 0)
- {
- wynik = i;
- break;
- }
- i=i+0,01;
- }
- cout << wynik;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement