الرجوع
تسجيل الدخول
أنت تتصفح نسخة مؤرشفة من الموقع اضغط للانتقال إلى الموقع الجديد بكامل المزايا

What is the output?

int z = 3;
z = (3 * --z) + (3 * z);
System.out.print("z=" + z + ",");

if (z % 4 == 0) {
    System.out.print("z=" + z + " and it is divisible by 4" + ",");
} else if (z % 4 != 0) {
    System.out.print("z=" + z + " and it is NOT divisible by 4" + ",");
}

if (z < 4) {
    System.out.print("z=" + z + " and it is less than 4" + ",");
    System.out.print("****");
} else {
    System.out.print("z=" + z + " and it is greater than 4");
}