Untitled
unknown
plain_text
2 years ago
446 B
9
Indexable
#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;
}Editor is loading...