/*
CS371p: Quiz #3 (5 pts)
*/
/* -----------------------------------------------------------------------
1. Almost all the major object-oriented concepts were in what programming
language of the 1960s? [Sec. 1.6, Pg. 18]
(1 pt)
Simula
*/
/* -----------------------------------------------------------------------
2. What is the output of the following program? [3n+ 1]
(3 pts)
2 3 1
*/
#include <iostream> // cout, endl
using namespace std;
int main () {
int i = 22;
int j = 3;
int k = (i %= j)++;
cout << i << " ";
cout << j << " ";
cout << k << endl;
return 0;}
syntax highlighted by Code2HTML, v. 0.9.1