пример №80

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <math.h> using namespace std; int main() { double x1,y1,x2,y2; cin >> x1; cin >> y1; cin >> x2; cin >> y2; double m1 = sqrt(x1*x1+y1*y1); double m2 = sqrt(x2*x2+y2*y2); if (m1<m2) { cout << "A ближе" << endl; } else { if (m1>m2) { cout << "B ближе" << endl; } } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines