Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
281 B
0
Indexable
Never
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;


int main()
{
	int a,b,c,d;
	cin >> a >> b >> c >> d;
	for (int i = -100; i<=100; i++)
	{
		if (a*pow(i,3)+ b * pow(i, 2)+c*i+d==0) {
			cout << i<<" ";
		}
	}
	
}