{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

chap 4 notes 6 - "Enter the count" cin>> n if...

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

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

Unformatted text preview: "Enter the count : " ; cin >> n; if ( n != ) { ave = sum / n; } cout << endl << "Average is : " << ave << endl; return ; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online