Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4(92)

Snippet info

Language

Cpp

Visibility

public

Author

andrusus.korotkovus

Created

2018-10-16T05:41:56Z

Updated

2018-10-16T05:41:56Z

#include <iostream>
using namespace std;

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