cminus/data/test9.c

28 lines
443 B
C

void main() {
int a;
a = 3;
println("This program prints [1..5] correct.");
if (a < 4) {
println("1 correct");
}
if (a > 4) {
println("2 not correct");
}
if (a > 4) {
println("2 not correct");
} else {
println("2 correct");
}
if (a <= 3) {
println("3 correct");
}
if (a == 3) {
println("4 correct");
}
if (a >= 4) {
println("5 not correct");
} else {
println("5 correct");
}
}