Skip to content

Instantly share code, notes, and snippets.

View jlegendary's full-sized avatar

JLegendary jlegendary

View GitHub Profile
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
}