Hi, my code exit the console when the input is valid. But what i want is that it stop after showing "Invalid value !" and remain in that page, it does not exit and does not read other input. Hope you can help me.
cout << "Please enter x (gram per litre) ." << endl;
cin >> x;
if (x%5!=0.0)
{
cout << "Invalid value !"<< endl;
system ("pause");
return 0;
}