chap 4 notes 42 - (sum<= 20 ){ num++;...

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

View Full Document Right Arrow Icon
42 Another while Example #include <iostream> using namespace std; int main( void ) { int num= 0 , sum= 0 ; while
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (sum&lt;= 20 ){ num++; cout&lt;&lt; &quot;SUM= &quot; &lt;&lt; sum &lt;&lt; endl &lt;&lt;endl; sum+=num; } return ; }...
View Full Document

Ask a homework question - tutors are online