online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// SEMANA 2 EJEMPLO 2 // // Desarrolle la aplicación Factura1App, para vender un artículo con la siguiente salida en el // monitor: // Compra // Ingrese nombre artículo: Lapicero // Ingrese Precio: 2.50 // Ingrese Cantidad: 4 // Factura // Precio Cantidad Soles // 2.50 4 10 // Descuento 10%: 1 // Total compra 9 // IGV: 18% 1.6199999999 // Total Factura 10.62 import java.util.Scanner public class Factura1App{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); final double DESCUENTO = .1, IGV=.18; String articulo; int cantidad; double precio, soles; System.out.println("Compra"); System.out.print("\tIngrese nombre artículo: "); articulo = sc.next(); System.out.print("\tIngrese Precio : "); precio = sc.nextDouble(); System.out.print("\tIngrese Cantidad : "); cantidad = sc.nextInt(); System.out.println("\nFactura"); System.out.println("\tPrecio Cantidad Soles"); soles = cantidad * precio; System.out.printf("\t%6.2f\t %6d\t%s\n", precio, cantidad, soles); System.out.println("\n\tDescuento " + DESCUENTO*100 + "% : " + DESCUENTO*soles); soles *= (1-DESCUENTO); System.out.println("\tTotal compra : " + soles); System.out.println("\tIGV: " + IGV*100 + "% : " + soles*IGV); soles *= (1+IGV); System.out.println("\tTotal Factura : " + soles); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue