Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package p1e1;
- import java.util.Scanner;
- public class P1e1 {
- public static void main(String[] args) {
- Scanner sc= new Scanner(System.in);
- int edad;
- double estatura;
- System.out.print("Introduzca su edad ");
- edad=sc.nextInt();
- System.out.print("Introduzca su estatura en metros ");
- estatura=sc.nextDouble();
- System.out.println("Su edad es: "+edad+" años y su estatura: "+estatura+" metros");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement