do {
:
:
:
:
else
{
cout << "\nInvalid.";
cout << "\nWould you like to calculate your bill again ? (y / n) : ";
cin >> ch;
cout << endl;
}
}
while (ch == 'Y' || ch == 'y');
cout << "End of programm" <<endl;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter