Guest User

Untitled

a guest
Jan 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. double ergebnis = (Personen1*Preise*(1-Prozent/100));
  2. DecimalFormat f = new DecimalFormat("#0.00");
  3.        
  4. System.out.println("Der Gesamtpreis beläuft sich auf: " + f.format(ergebnis) + " Euro");
Add Comment
Please, Sign In to add comment