compiler-design-eth/javali_tests/HW2_nop90/conditionExpressions.javali
Carlos Galindo bf60a078d7
Homework 2
2020-01-15 22:30:09 +01:00

24 lines
No EOL
328 B
Text
Executable file

/* testing conditions*/
class Main {
void main() {
boolean a;
int b,c, d, e;
b = 10;
c = 3;
d = 40;
e = 1;
while ( b > c ) {
write(b);
b = b-1;
}
a = c < (b+4-5/2);
if (a){
write(13);}
if (100/2>d*e){
while(e<d){
d = d/2;}}
}
}