/* * 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 ejercicios; import java.util.Scanner; /** * * @author roshka */ public class Ejercicio06 { public static void main(String[] args){ float precio; float iva; Scanner scn = new Scanner(System.in); System.out.println("Ingrese su precio"); precio = scn.nextFloat(); iva = (precio*10)/100; precio = precio + iva; System.out.println("El precio de su producto con IVA incluido: "+precio+"$"); } }