a) basic arithmetic. // code int x = 25, y = 5; float z = x / y; x = x - y * 2; y = y + y * 2; y = (x + y) % 10; z = z / 5.0; // variable values. // // x: // // y: // // z: // b) Boolean logic, conditionals. // code float f = 3.14; int x = 29; if (f < 3.5 && x > 10.0) { if (x <= 30.0) x = x / 2.0; else x = x - 2.0; f = f - 1.0; } else { if (f > 3.0) x = x * x; else x = x + x; f = f + f; } x = x / 3.0; f = f + 2.0 * x; // variable values. // // x: // // f: // c) Loops. // code int i = 0; int total=0; while (i < 12) { total = total + i; i += 3; } // variable values. // // i: // // total: //