Assignment 11 - cin>> number cout<< endl 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 >> number; cout << endl; cout << total << endl; } system ("PAUSE"); return 0; } B. #include <iostream> using namespace std; int main () { int number, total; cin >> number; while (number != -1) { cin >> number; total = total + number; } cout << endl; cout << total << endl; system ("PAUSE"); return 0; } 30. x...
View Full Document

This note was uploaded on 04/21/2008 for the course CSC 124 taught by Professor Salim during the Fall '07 term at California University of Pennsylvania.

Page1 / 2

Assignment 11 - cin>> number cout<< endl 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