chap 4 notes 8 - cin >> n; if ( n !=...

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

View Full Document Right Arrow Icon
8 # include <iostream> using namespace std; int main( void ) { int ave= 0 , sum= 0 , n; cout << "Enter sum : " ; cin >> sum; cout << endl << "Enter the count : " ;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin &gt;&gt; n; if ( n != ) { ave = sum / n; } cout &lt;&lt; endl &lt;&lt; &quot;Average is : &quot; &lt;&lt; ave &lt;&lt; endl; return ; } if Statement Example, Part 2...
View Full Document

Ask a homework question - tutors are online