Untitled
unknown
c_cpp
2 years ago
298 B
6
Indexable
#include <iostream>
using namespace std;
int main()
{
float x;
cin >> x;
float y;
cin >> y;
float c;
cin >> c;
float result;
float d;
d = y * y - 4 * x * c;
if (d > 0)cout << '2';
else if (d == 0)cout << '1';
else cout << '0';
}
Editor is loading...