1import java.util.Scanner;
2
3public class CalculoIVE {
4
5 public static void main(String[] args) {
6 Scanner teclado = new Scanner(System.in);
7
8 //D
9
10 double prezo = 0;
11 double ive = 0;
12 double pfinal = 0;
13
14 //E
15
16 System.out.println("Introduza prezo sen IVE (€) : ");
17 prezo = teclado.nextDouble();
18
19 System.out.println("Introduza IVE (%) : ");
20 ive = teclado.nextDouble();
21
22 //P
23
24 pfinal = prezo * (1 + (ive / 100));
25
26 //S
27
28 System.out.println("Importe con IVE = " + pfinal + "€");
29
30 }
31
32}