martes, 21 de abril de 2015

e_03




package ejercicio3;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class EJERCICIO3 {

 
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        float vv,igv,pv;
             BufferedReader in=new BufferedReader(new  InputStreamReader(System.in));
 System.out.println("Valor de venta: ");
 vv=Integer.parseInt(in.readLine());//ojo
 igv=vv*0.19F;
 pv=vv+igv;
 System.out.println("");
 System.out.println("Igv:" + igv);
  System.out.println("Precio de venta:" + pv);
 System.out.println();
     
    }
}

No hay comentarios:

Publicar un comentario