Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
350 B
1107
Indexable
Never
#include<iostream>
#include<bits/stdc++.h>

using namespace std;  
int main() {
	    int a, b;
    cin >> a >> b;
    double x;
	if(a == 0){ 
		if(b == 0){ 
			cout << "INF";
		}else if(b != 0){ 
			cout <<"NO";
		}
	}
    else {
        x = (double)-b/a;
        cout << setprecision(2) << fixed << x;
    }
    return 0;
}