25 lines
419 B
Text
25 lines
419 B
Text
|
/* test what happens if there are no parentheses */
|
||
|
|
||
|
class Main {
|
||
|
void main() {
|
||
|
int x;
|
||
|
int y;
|
||
|
int z;
|
||
|
|
||
|
x = 5;
|
||
|
y = 10;
|
||
|
z = 100;
|
||
|
|
||
|
write( x + y + z); writeln();
|
||
|
/* */
|
||
|
write( - x + y - z); writeln();
|
||
|
|
||
|
/* should output 205 */
|
||
|
write( x + 2 * z); writeln();
|
||
|
|
||
|
write( x + 2 * z / x + 1); writeln();
|
||
|
write(+x); writeln();
|
||
|
|
||
|
}
|
||
|
}
|