Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
411 B
2
Indexable
Never
void NhapGiaTriTrangThai(int &x)
{
	do
	{

		cin >> x;
		{
			if (x != 0 && x != 1)
			{
				cout << "Trang Thai Khong Phu Hop " << endl;
			}
			else if(x == 0 || x == 1)
			{
				break;
			}
		}
		
	} while (x != 0 && x != 1);
	
}
void XuLyTrangThai(int& x)
{
	if (x == 0)
	{
		cout << "The bi khoa " << endl;
	}
	else if (x == 1)
	{
		cout << "The dang hoat dong " << endl;
	}
}