#include <iostream>
using namespace std;

int main() {
	if (int x = 10 % 2) {
		cout << "10 % 2 == " << x << endl;
	}
	if (int x = 10 % 3) {
		cout << "10 % 3 == " << x << endl;
	}

	switch (int x = 10 % 2) {
		case 0: cout << "zero: " << x << endl; break;
		case 1: cout << "one: " << x << endl; break;
	}
	switch (int x = 10 % 3) {
		case 0: cout << "zero: " << x << endl; break;
		case 1: cout << "one: " << x << endl; break;
	}

	int i = 9;
	while (int r = ++i % 3) {
		cout << i << ": " << r << endl;
	}

	for (int j = 1, k = 1; int diff = j*j - 3*k; j++,k++) {
		cout << "j: " << j << ", k: " << k << ", diff: " << diff << endl;
	}
	return 0;
}