Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class YardGreening {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6.  
  7. double area = Double.parseDouble(scan.nextLine());
  8.  
  9. double price = area * 7.61;
  10.  
  11. double discount = price - discont;
  12.  
  13.  
  14. System.out.println(String.format("The final price is: % . 2f lv.", finalPrice));
  15. System.out.println(String.format("The discount is: % . 2f lv.", discount));
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement