Josif_tepe

Untitled

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