Advertisement
SensaBG

Untitled

Jun 26th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. double averagePoints = Math.floor((totalPoints * 1.0) / n);
  2. double amountWins = (wins * 1.0) / n * 100;
  3.  
  4. System.out.printf("\nFinal points: %d", initialPoints);
  5. System.out.printf("\nAverage points: %.0f", averagePoints);
  6. System.out.printf("\n%.2f%%", amountWins);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement