#include <iostream>
#include <cmath>
using namespace std;
double distance(int x1, int y1, int x2, int y2) {
double d = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
return d;
}
int main() {
int x1 = 2, y1 = 1, x2 = 2, y2 = 2;
double d = distance(x1, y1, x2, y2);
cout << "Distance between (" << x1 << ", " << y1 << ") and (" << x2 << ", " << y2 << ") is " << d << endl;
return 0;
}