Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double ergebnis = (Personen1*Preise*(1-Prozent/100));
- DecimalFormat f = new DecimalFormat("#0.00");
- System.out.println("Der Gesamtpreis beläuft sich auf: " + f.format(ergebnis) + " Euro");
Add Comment
Please, Sign In to add comment