Untitled
Anonymous
C++
11/09/2023 4:55 PM
298 B
18
Indexable
Never
#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...