Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Telerik_34_CalculateDiscount {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int items = Integer.parseInt(sc.nextLine());
- double disPrice=0.0;
- for (int i=1; i<=items; i++) {
- double price = Double.parseDouble(sc.nextLine());
- disPrice = 0.35*price;
- System.out.printf("\n%.2f",disPrice) ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment