Untitled
unknown
c_cpp
2 years ago
237 B
3
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...
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";