Assignment: #CodeSnippets2 Points: 0 Due: 05/02/02018
/*
 * Execute the following code snippets by hand and record
 * what the outputs would be if executed by the computer.
 * Pretend you are a computer. Typing these code snippets
 * into a computer defeats the purpose of this assignment.
 */

/* exercise 0 */
int a = 5;
int b = 10;
do {
   a = (a + b) * 2;
   cout << a << endl;
   b = b + 30;
} while (b < 100);

/* exercise 1 */
int k = 5;
bool flag = false;
while (!flag) {
   k = k % 2;
   if (k == 0)
      flag = true;
   k = k * 2;
   cout << k << endl;
}

/* exercise 2 */
for (int i = 0; i < 5; i++)
   cout << (i * 2 - 2) << end;

/* exercise 3 */
evalute:  true && !false || true && (false || true)