Advertisement
Guest User

Numere Pozitive

a guest
Sep 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a , b , c;
  8.     cin>>a>>b>>c;
  9.     if(a>0&&b>0&&c>0)
  10.         cout<<"Toate cele 3 numere sunt poziyive";
  11.     break;
  12.         if(a<0&&b<0&&c<0)
  13.         cout<<"Toate cele 3 nr. sunt negative";
  14.     break;
  15.     if(a*b*c<0)
  16.         cout<<"Exista un nr. negativ";
  17.     if(a<0 && b<0 || b<0 && c<0 || a<0 && c<0)
  18.         cout<<"Eista 2 nr. negative";
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement