Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double averagePoints = Math.floor((totalPoints * 1.0) / n);
- double amountWins = (wins * 1.0) / n * 100;
- System.out.printf("\nFinal points: %d", initialPoints);
- System.out.printf("\nAverage points: %.0f", averagePoints);
- System.out.printf("\n%.2f%%", amountWins);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement