Ejercicio06.java 689 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

import java.util.Scanner;

/*
 * 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.
 */

/**
 *
 * @author user
 */
public class Ejercicio06 {
    public static void main(String[] args) {
        float iva = 10/100f;
        
        Scanner sc = new Scanner(System.in);
        System.out.print("Introduzca el precio de un producto: ");
        float precio = sc.nextFloat();
        System.out.println("");
        
        float precioFinal = precio + (precio*iva);
        
        System.out.println("El precio fnal del producto es: " + precioFinal);
    }
}