Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a , b , c;
- cin>>a>>b>>c;
- if(a>0&&b>0&&c>0)
- cout<<"Toate cele 3 numere sunt poziyive";
- break;
- if(a<0&&b<0&&c<0)
- cout<<"Toate cele 3 nr. sunt negative";
- break;
- if(a*b*c<0)
- cout<<"Exista un nr. negativ";
- if(a<0 && b<0 || b<0 && c<0 || a<0 && c<0)
- cout<<"Eista 2 nr. negative";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement