compiler-design-eth/javali_tests/HW1/Negation.javali
Carlos Galindo 12f678a924
Homework 1
2020-01-15 22:29:20 +01:00

18 lines
239 B
Text

class Main {
void main() {
int A,B,a,b,c,d;
A = 1;
B = 1;
a = A * (-B);
b = -A * B;
c = -(A + B);
d = -(A * B);
write(a); writeln();
write(b); writeln();
write(c); writeln();
write(d); writeln();
}
}