






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







cin >> alpha >> beta;
cin >> alpha; cin >> beta;
if (speed <= 40) cout << "Too slow"; if (speed > 40 && speed <= 55) cout << "Good speed"; if (speed > 55) cout << "Too fast";
if (speed <= 40) cout << "Too slow"; else if (speed <= 55) cout << "Good speed"; else cout << "Too fast";
int beta[20];
beta = beta + 1;
e.CAPS
int arr[5]; int i;
for (i = 0; i < 5; i++) { arr[i] = i + 2; if (i >= 3) arr[i-1] = arr[i] + 3; }
for (i = 0; i < M; i++) for (j = 0; j < N; j++) cout << table[i][j];
age = 29; cout << "Are you" << age << "years old?" << endl;
const int FACTOR = 95;
a. p && p b. p || p c. p && !p d. p || !p
loopCount = 1; while (loopCount <= 145) { alpha = alpha + 7; loopCount++; }
for (count = 0; count <= 20; count++) DoSomething();
n = 2; for (loopCount = 1; loopCount <= 3; loopCount++) do n = 2 * n; while (n <= 4); cout << n << endl;
enum Days {YESTERDAY, TODAY, TOMORROW}; Days day = TODAY;
double x[5]; int y;
for (y = 0; y < 5; y++) x[y] = 2 * y - 1; y = 2;
a) cout << x[4] << endl ; ______________________________
b) cout << x[0] << endl; ______________________________
c) cout << x[1] + 2.0 << endl; ______________________________
d) cout << x[(1+1)*2] << endl; ______________________________
e) cout << x[int(x[2])] << endl ; ______________________________
f) cout << x[y++] << endl; ______________________________