package org.example.Clases;

import java.util.Scanner;

public class Clase_1_Scanner {

    static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("Introduce tu nombre");
        String nombre = sc.nextLine();

        System.out.println("Introduce tu edad");
        int edad = sc.nextInt();

        System.out.println("Números de años cotizados");
        double yCotizados = sc.nextDouble();

        //System.out.println("La edad de "+nombre+" es "+edad);

        //printf (%s
        System.out.printf("El usuario [%12s] tiene (%d años) y (%.2f años cotizados)" , nombre, edad, yCotizados);
    }
}
