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 pkg2;
- import java.util.Scanner;
- /**
- *
- * @author lab5-pc38
- */
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- String pelicula, equipo_futbol, peliculafav;
- int numero;
- double promedio;
- pelicula = "Rambo";
- equipo_futbol = "Juventus";
- numero=8;
- System.out.println ("pelicula:" + pelicula);
- Scanner teclado = new Scanner(System.in);
- System.out.print("Ingrese su pelicula fav:");
- peliculafav = teclado.nextLine();
- System.out.println("La pelicula "+ peliculafav + " es AMAZING!!!! xd");
- System.out.print("Ingrese su promedio: ");
- promedio = teclado.nextDouble();
- }
- }
Add Comment
Please, Sign In to add comment