Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4(59)

Snippet info

Language

Cpp

Visibility

public

Author

andrusus.korotkovus

Created

2018-10-16T05:48:04Z

Updated

2018-10-22T19:16:13Z

#include <iostream>
using namespace std;

int main() {
    int x, y, a, b, z;
    cin>>x>>y>>a>>b;
    if(y>=b) {
        z = a-x;
    } else {
        z = a-x-1;
    }
    cout<<z;
}
INFO