This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for ( count = 0; count < internetHits; count++) // First start with 0 count and repeat until it is less than internetHits | |
| { // Starts the loop, this is the block of the loop | |
| cout << "Enter the number of Internet hits for Hour" << // Outputs string: Enter the number of internet hits in an hour | |
| (count + 1) << ": " // Outputs count+1: I don't know why you did this. This just outputs whatever // count is plus 1. So first output would be 1, 2 until it gets to internetHit | |
| cin >> internetHits; // Input internetHits. You would have to put this outside the loop, otherwise // it will keep asking you to input internetHits | |
| } | |