compiler-design-eth/javali_tests/HW2_nop90/conditionExpressions.javali

24 lines
328 B
Plaintext

/* 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;}}
}
}