Advertisement
Josif_tepe

Untitled

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