-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCine.java
More file actions
39 lines (34 loc) · 1.24 KB
/
Cine.java
File metadata and controls
39 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
public class Cine {
public static void main(String[] args) {
// Vamos a ir al cine.
// Condiciones para ello
// Vivir cerca de Alberto - CDMX
// // Disponibilidad de tiempo
// Tener dinerito
// que pelicula veremos
// que la pelicula que queremos ver este dosponible.
// Dany vive en Veracruz
boolean vivirCerca = true;
boolean tenemosTiempo = true;
boolean tenerDinerito = true;
boolean peliculaDisponible = true;
if (vivirCerca) {
if (tenemosTiempo) {
if (tenerDinerito) {
if (peliculaDisponible) {
System.out.println(
"Vamos a ver la película porque tenemos tiempo, hay dinerito y vivimos cerca.");
} else {
System.out.println("Buscar otra película");
}
} else {
System.out.println("Metemos hamburguesas de contrabando");
}
} else {
System.out.println("Buscar por ejemplo vernos el sábado");
}
} else {
System.out.println("Suerte para la próxima");
}
}
}