Untitled

Anonymous
Plain Text
11/20/2022 12:22 PM
235 B
19
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
int main(){
	int a, b, c, d;
	cin >> a >> b >> c >> d;
	for (int x = -100; x <= 100; x++){
		if (a * pow(x, 3) + b * pow(x, 2) + c * x + d == 0) cout << x << ' ';
	}
}
Editor is loading...