Preview:
while (startTime<0 || startTime>2400) {

            cout << "\nInvalid time.";          // keep asking for time input until it is valid
            cout << "Enter start time of the call(For example, 2:30 = 2330): ";
            cin >> startTime;
        }
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