Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class IVAN {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- System.out.print("VEGETABLE lv: ");
- double veg1 = scan.nextDouble();
- System.out.print("FRUIT lv: ");
- double fru1 = scan.nextDouble();
- System.out.print("VEGETABLE KG: ");
- double veg2 = scan.nextDouble();
- System.out.print("FRUIT KG: ");
- double fru2 = scan.nextDouble();
- double result1 = veg1*veg2;
- System.out.println("PRICE: "+ result1);
- double result2 = fru1*fru2;
- System.out.print("PRICE "+ result2);
- //double result3 = (result1 + result2)/1.94;
- //System.out.print("EURO "+ result3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement