Assignment 11

Assignment 11 - cin >> number; cout...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 124 10-24-2007 1. A. False B. True C. False D. True E. True F. True G. True H. False 2. y = 0 and count = 100 5. if ch > ‘Z’ or ch < ‘A’ 8. Sum = 161 12. x 15. 2 7 17 37 77 157 19. WHAT IS DONE, OFTEN IS NOT DONE WELL. 22. x 26. A. #include <iostream> using namespace std; int main () { int number, total; cin >> number; while (number != -1) { total = total + number;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin &gt;&gt; number; cout &lt;&lt; endl; cout &lt;&lt; total &lt;&lt; endl; } system (&quot;PAUSE&quot;); return 0; } B. #include &lt;iostream&gt; using namespace std; int main () { int number, total; cin &gt;&gt; number; while (number != -1) { cin &gt;&gt; number; total = total + number; } cout &lt;&lt; endl; cout &lt;&lt; total &lt;&lt; endl; system (&quot;PAUSE&quot;); return 0; } 30. x...
View Full Document

Page1 / 2

Assignment 11 - cin &amp;amp;gt;&amp;amp;gt; number; cout...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online