-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathCinema.java
More file actions
32 lines (30 loc) · 1.06 KB
/
Cinema.java
File metadata and controls
32 lines (30 loc) · 1.06 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
public class Cinema {
public static void main(String args[]) {
// Iremos al cine.
// Vivir en CDMX
// Pelicula - Intensamente 2
// Llevemos dinero
// Fecha - 2 de Junio
boolean vivimosCDMX = true;
boolean peliculaDisponible = true;
boolean hayDineritoDulceria = true;
boolean puedo2Junio = false;
if (vivimosCDMX == true) {
if (peliculaDisponible == true) {
if (hayDineritoDulceria == true) {
if (puedo2Junio == true) {
System.out.println("Vamos a ver Intensamente 2");
} else {
System.out.println("No podemos ir, ese día hay votaciones");
}
} else {
System.out.println("Metemos tortas de contrabando");
}
} else {
System.out.println("Vemos Garfield");
}
} else {
System.out.println("No podemos ir al cine porque no vivimos en CDMX");
}
}
}