Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- float a, b;
- cin >> a >> b;
- if (a == 0 && b != 0) {
- cout << "Ravenkata nema reshenie" << endl;
- } else if (a == 0 && b == 0) {
- cout << "Ravenkata ima beskonechno mnogu reshenija" << endl;
- } else {
- float x = -b/a;
- cout << x << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment