Any input on how I can get firstDiastolic, secondDiastolic, thirdDiastolic, firstSystolic, secondSystolic, thirdSystolic to accept only positive integers? I am trying to use a while loop but am having trouble with implementing this with conditions on six variables.Code:void BP::GetPressure()
{
cout << "Please enter your Diastolic Pressure readings: ";
cin >> firstDiastolic >> secondDiastolic >> thirdDiastolic;
cout << "Please enter your Systolic Pressure readings: ";
cin >> firstSystolic >> secondSystolic >> thirdSystolic;
}