keviinrm7

2

May 17th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package pkg2;
  7. import java.util.Scanner;
  8. /**
  9. *
  10. * @author lab5-pc38
  11. */
  12. public class Main {
  13.  
  14. /**
  15. * @param args the command line arguments
  16. */
  17. public static void main(String[] args) {
  18.  
  19. String pelicula, equipo_futbol, peliculafav;
  20. int numero;
  21. double promedio;
  22.  
  23. pelicula = "Rambo";
  24. equipo_futbol = "Juventus";
  25. numero=8;
  26.  
  27. System.out.println ("pelicula:" + pelicula);
  28.  
  29. Scanner teclado = new Scanner(System.in);
  30. System.out.print("Ingrese su pelicula fav:");
  31. peliculafav = teclado.nextLine();
  32.  
  33. System.out.println("La pelicula "+ peliculafav + " es AMAZING!!!! xd");
  34.  
  35. System.out.print("Ingrese su promedio: ");
  36. promedio = teclado.nextDouble();
  37. }
  38.  
  39. }
Add Comment
Please, Sign In to add comment