You are on page 1of 1

int a = 0;

int x = 10;
switch(a<10){
case true:
x=x+2;
break;
case false:
x=x+1;
break;
}

t1 = 0;
a = t1;
t2 = 10;
x = t2;
t3 = a- 10;

inicio_switch1
caso1:
sifalse t3 mayor 0 goto caso2:
t4 = x+2
x = t4
goto fin_switch1:
caso2:
si falseo t3 menor 0 goto fin_switch1:
t5 = x+1
x = t5;
goto fin_switch1:
fin_switch1:

int a = 0;
if ( a <= 10 ){
a = a + 1;
}

You might also like