Untitled
unknown
plain_text
3 years ago
235 B
4
Indexable
#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...