Advertisement
Xadez

Vegetables

Apr 18th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Learning {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         double kgv =Double.parseDouble(scanner.nextLine());
  8.         double kgf =Double.parseDouble(scanner.nextLine());
  9.         int totalkgv =Integer.parseInt(scanner.nextLine());
  10.         int totalkgf =Integer.parseInt(scanner.nextLine());
  11.  
  12.         System.out.println((kgv * totalkgv + kgf * totalkgf) / 1.94);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement