31 lines
503 B
Text
Executable file
31 lines
503 B
Text
Executable file
class Main {
|
|
void main() {
|
|
int r1;
|
|
int i0, i1;
|
|
int x,y,z;
|
|
|
|
i0 = 5;
|
|
i1 = 2;
|
|
|
|
r1 = i1 * 3;
|
|
write(r1); writeln();
|
|
|
|
r1 = i0 * i1;
|
|
write(r1); writeln();
|
|
|
|
r1 = r1 * i0 * i1 * 3;
|
|
write(r1); writeln();
|
|
|
|
y = 5;
|
|
z = 10;
|
|
x = (-y * z);
|
|
write(x); writeln();
|
|
|
|
y = 0;
|
|
z = - 10;
|
|
x = (y * z);
|
|
write(x); writeln();
|
|
write(y * z); writeln();
|
|
write(0 * -10); writeln();
|
|
}
|
|
}
|