Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package clase.pkg27.de.mayo;
- import java.util.Scanner;
- /**
- *
- * @author lab5-pc5
- */
- public class CLASE27DEMAYO {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- System.out.println(" Comidas tipicas");
- System.out.println("1. Tigrillo - $3.00");
- System.out.println("2. Encebollado - $2.00");
- System.out.println("3. Caldo de pichon - $2.00");
- System.out.println("4. Yapingacho - $3.00");
- System.out.println("5. Cuy - $5.00");
- System.out.println("6. Salir");
- System.out.print("Elija opcion: ");
- Scanner teclado = new Scanner(System.in);
- int opcion = teclado.nextInt();
- switch (opcion)
- {
- case 1:
- System.out.println("Tigrillo entregado");
- break;
- case 2:
- System.out.println("* * * * * *");
- break;
- case 3:
- System.out.println("*");
- break;
- case 4:
- System.out.println("* * *");
- break;
- case 5:
- System.out.println("* *");
- break;
- case 6:
- System.out.println("Gracias por su compra.");
- break;
- default:
- System.out.println("OPCION INCORRECTA MALDITO BRUTO.");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement