03.-
*/
package problema.pkg4;
import java.io.*;
/**
*
* @author ABEL MONTALVAN
*/
public class Problema4 {
/**
* @param args the command line arguments
*/
public static void main(String[] args)throws IOException {
//variable
float vv,igv,pv;
//entrada
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("valor de venta:");
vv =Float.parseFloat(in.readLine());
//proceso
igv = vv *0.18f;
pv = vv+ igv;
//salida
System.out.println("");
System.out.println("igv: " +igv);
System.out.println("precio de venta: " +pv);
// TODO code application logic here
}
}
No hay comentarios:
Publicar un comentario