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

21 lines
No EOL
499 B
Text
Executable file

class Main {
void main() {
int a, b, c, d, e;
a = 10;
b = -1;
c = 0;
d = 100;
e = 2;
write(a / b); writeln();
write(d / e); writeln();
write(c / d); writeln();
write(b / a + c); writeln();
write(d / e * a / b * c); writeln();
write(d / e * a / b); writeln();
write(d / e + a / b); writeln();
write(d / e * a * b * c); writeln();
write(d / e * a - b + c); writeln();
}
}