for ( Entry Expression ;
Boolean Expression ;
Continuation Expression )
Embedded Statement
Below is a flowchart of the For loop.
sum = 0;
for (count = 1; count < numofnumbers; ++count) {
cout << "Enter next number " ;
cin >> number ;
sum = sum + number ;
}
cout << "Sum is " << sum << endl;