Josif_tepe

Untitled

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