compiler-design-eth/javali_tests/HW1/Multiplication.javali

19 lines
259 B
Text
Raw Normal View History

2020-01-15 22:30:09 +01:00
class Main {
void main() {
int r1;
int i0, i1;
i0 = 5;
i1 = 2;
r1 = i1 * 3;
write(r1); writeln();
r1 = i0 * i1;
write(r1); writeln();
r1 = r1 * i0 * i1 * 3;
write(r1); writeln();
}
}