chap 4 notes 67 - cout << i; } return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
67 #include <iostream> using namespace std; int main( void ) { int i, n1, n2; cout<< "Enter starting point: " ; cin>>n1; cout<< "\nEnter stopping point: " ; cin>>n2; for (i=n1; i<n2; i++) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout &lt;&lt; i; } return ; } for Example i = 15 Just like a while statement, the program loops back to the beginning after it reaches the end of the statement....
View Full Document

Ask a homework question - tutors are online