Quick actions

cmd+k|ctrl+k

Navigation

Languages

4lab(86)bikhnevich

Snippet info

Language

Cpp

Visibility

public

Author

bikhnevichk

Created

2018-10-30T07:00:23Z

Updated

2018-11-04T21:08:03Z

#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    
    if(a > 0 && b > 0 && c > 0)
        cout << "3" << endl;
    else if ((a > 0 && b > 0 && c < 0) or (a > 0 && b < 0 && c > 0) or (a < 0 && b > 0 && c > 0))
        cout << "2" << endl;
    else if ((a > 0 && b < 0 && c < 0) or (a < 0 && b < 0 && c > 0) or (a < 0 && b > 0 && c < 0))
        cout << "1" << endl;
    else
        cout << "0";
    return 0;
}
INFO