chap 4 notes 14 - "This is a failing...

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

View Full Document Right Arrow Icon
14 # include <iostream> using namespace std; int main( void ) { int failed= 0 , passed= 0 , score; cout << "Enter the score : " ; cin >> score; if (score >= 60 ) { cout << endl << "This is a passing score" ; passed++; } else { 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: &quot;This is a failing score&quot; ; failed++; } cout &lt;&lt; endl &lt;&lt; &quot;The number of Passed students is : &quot; &lt;&lt; passed; cout &lt;&lt; endl &lt;&lt; &quot;The number of Failed students is : &quot; &lt;&lt; failed &lt;&lt; endl; return ; } ifelse Example...
View Full Document

Ask a homework question - tutors are online