Untitled
unknown
c_cpp
2 years ago
236 B
10
Indexable
int a, b, c;
cin >> a >> b >> c;
float D;
D = b ^ 2 - 4 * a * c;
if (D > 0)
cout << '2';
else
if (D == 0)
cout << '1';
else
if (D<0)
cout << "NO"Editor is loading...