ECOR 1606 Midterm: Exam-ECOR1606-2009February
lilacrabbit687 and 1 other unlocked
1
ECOR 1606 Full Course Notes
Verified Note
1 document
Document Summary
Q u e s t i o n 1 : ; " : " j cout << j << endl; Suppose we would like to replace the code shown below with code that i) has exactly the same effect but that ii) makes use of a "do while" instead of a "while". Show how this can be accomplished. w h i l e @ < a q { : b + 7 2 " . a : a + 1 : Write a c++ program that reacs in two integers and that then outprits all of the integers between the two values (including the values themselves). The values must be output in ascending order and each value should appear on a separate line. Note that there is no guarantee that the first value entered will be smaller than the second (or vice versa). example: If 6 and 2 are input the program should output.