package compras;
import java.util.Scanner;
import java.io.*;
import javax.swing.JOptionPane;
public class COMPRAS {
public static void main(String[] args) {
Scanner s = new Scanner (System.in);
int panela = 1800;
int frijol = 3900;
int aceite = 5500;
double valor1,valor2,valor3, total;
JOptionPane.showInputDialog("Ingrese Prodeucto 1: ");
valor1 = s.nextInt();
JOptionPane.showInputDialog("Ingrese Prodeucto 2: ");
valor2 = s.nextInt();
JOptionPane.showInputDialog("Ingrese Prodeucto 3: ");
valor3 = s.nextInt();
total = (valor1 + valor2 + valor3);
System.out.printf("\n Su valor Total es: ");
}
}
No hay comentarios.:
Publicar un comentario