Advertisement
Josif_tepe

Untitled

Nov 18th, 2023
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     int a, b;
  10.     cin >> a >> b;
  11.    
  12.     if(a == 0 and b == 0) {
  13.         cout << "ima beskonecno resenija" << endl;
  14.     }
  15.     else if(a == 0) {
  16.         cout << "nema resenie" << endl;
  17.     }
  18.     else {
  19.         cout << (-b / a) << endl;
  20.     }
  21.    
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement