#include "stdafx.h"
#include "iostream"
using namespace std;
//alidoran
int main()
{
int n1, n2, n3 , mid;
cout << "Enter three integers: ";
cin >> n1 >> n2 >> n3 ;
int min = n1;
int max = n1;
if (n2 < min) min = n2;
if (n3 < min) min = n3;
if (n2 > max) max = n2;
if (n3 > max) max = n3;
if (n1 > min&&n1 < max) mid = n1;
if (n2 > min&&n2 < max) mid = n2;
if (n3 > min&&n3 < max) mid = n3;
cout << "The mid is " << mid << endl;
system("pause");
return 0;
}