Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4(115)

Snippet info

Language

Cpp

Visibility

public

Author

andrusus.korotkovus

Created

2018-10-25T16:31:26Z

Updated

2018-10-25T16:31:26Z

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int a, b, c, x, y;
    cin>>a>>b>>c;
    x = abs(b-a);
    y = abs(c-a);
    if(x>y) {
        cout<<"точка c ближе к точке a";
    } else{
        cout << "точка b ближе к точке a";
    }
    return 0;
}
INFO