compiler-design-eth/javali_tests/HW4_nop90/Booleans/OkEquals2.javali

16 lines
205 B
Text
Raw Normal View History

2020-01-15 22:34:57 +01:00
// Test the equal/not equal operations, one of the types must be a subtype of the other
class Main {
void main() {
int a,b;
boolean c;
a = 8;
b = 6;
c = a==b;
if (!c){
write(5);}
}
}