#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
int main() {
vector <double> rast; // вектор расстояний
double min = 9999999;
double max = -9999999;
double x = 0;;
double summa = 0;
cout << "Vvodite chisla [dlya vixoda vvedite bukvy]";
while (cin >>x) {
rast.push_back(x);
}
for (int i = 0; i < rast.size(); ++i) {
summa += rast[i];
cout << '\n' << rast[i];
if (rast[i] + rast[i + 1] <= min) {
min = rast[i] + rast[i + 1];
}
else {}
if (rast[i] + rast[i + 1] >= max) {
max = rast[i] + rast[i + 1];
}
else {}
}
cout << '\n' << "Minimalnoe rasstoyanie =" << min << '\n' << "Maksimalnoe rasstoyanie =" << max << "\n"
<< "Summarnoе rasstoyanie =" << summa;
return 0;
}
if ( (i + 1) > rast.size()) {
break;
}