Untitled
unknown
plain_text
a month ago
446 B
1
Indexable
Never
#include <iostream> using namespace std; int main() { int x = -1000; double a, b, c; cin >> a >> b >> c; int i = 0; while (x < 1000){ x += 1; if (a * x * x + b * x + c == 0){ i++; cout << x << "\n"; } if (x == 999) break; } if (i == 0) { cout << "net corney"; } else { cout << i; } return 0; }