// Fathi mohammed fathi rezq bekhit 
#include <iostream>
using namespace std;








void convertkilo()
{ 
float miles; float answer;
cout << "please input the miles to converted" << endl;
cin >> miles;
answer = miles * 1.61;
cout << "the mile is equivalent to " << answer << "kilometeres" << endl;
}


void convertmiles()
{ 
float kilo; float ans;
cout << "please input the kilometers to converted" << endl;
cin >> kilo;
ans = kilo * 1.61;
cout << "the kilometers is equivalent to " << ans << "miles" << endl;
}




int inform()
{
	int choose;
	cout << "please input" << endl;
	
	cout << "1. convert kilometres to miles" << endl;
	cout << "2. convert miles to kilometres" << endl;
	cout << "3. quit" << endl;
	cin >> choose;
	
	
	return (choose);

	
}
int main()
{
	int choice, miles, kilometers;
	choice = inform();
	while ((choice>=1) && (choice <=3))
	{
		switch (choice)
		{ case 1: convertmiles();
		break;
		case 2: convertkilo();
		break;
		case 3: cout << "you have choosen to quit" << endl;
		exit (0);
		}
		choice = inform();
	}
	
	
	return 0;
}
