Professional Documents
Culture Documents
Ejercicios Prueba Caja Blanca 2
Ejercicios Prueba Caja Blanca 2
1. void f() {
2. float x;
3. float y;
4. x = read();
5. y = read();
6. if (x > 0)
7. x += 10;
8. y = y / x;
9. write(x);
10. write(y);
11. }
X = -1 X = -1 Si (x>0) FALSE
Y = -1 Y= 1
Ejercicio 2
1, 2, 3, 4 max_value = Si (numbers.length>5)
Math.max(max_value, FALSE
numbers[i]) Si (numbers[i] < 0) FALSE
Ejercicio 3