-
Lenguaje
Java usando Scanner
-
Descripción
La Empresa Makro S.A., desea obtener el impuesto general a las ventas (IGV) de la venta total realizada. Obtener el IGV de la venta total.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import java.util.Scanner;
public class EmpresaMakroSa {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double IGV, porcentaje_de_IGV, venta_total;
System.out.print("Ingresa el valor de porcentaje de IGV: ");
porcentaje_de_IGV = in.nextDouble();
in.nextLine();
System.out.print("Ingresa el valor de venta total: ");
venta_total = in.nextDouble();
in.nextLine();
IGV=venta_total*porcentaje_de_IGV/100;
System.out.println("Valor de IGV: " + IGV);
}
}
public class EmpresaMakroSa {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double IGV, porcentaje_de_IGV, venta_total;
System.out.print("Ingresa el valor de porcentaje de IGV: ");
porcentaje_de_IGV = in.nextDouble();
in.nextLine();
System.out.print("Ingresa el valor de venta total: ");
venta_total = in.nextDouble();
in.nextLine();
IGV=venta_total*porcentaje_de_IGV/100;
System.out.println("Valor de IGV: " + IGV);
}
}