Untitled
unknown
plain_text
2 years ago
235 B
1
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...