Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class YardGreening {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double area = Double.parseDouble(scan.nextLine());
- double price = area * 7.61;
- double discount = price - discont;
- System.out.println(String.format("The final price is: % . 2f lv.", finalPrice));
- System.out.println(String.format("The discount is: % . 2f lv.", discount));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement