Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
J 0.29 KB | None | 0 0
  1. import java.math.BigDecimal;
  2.  
  3. public class App {
  4.     public static void main(String[] args) {
  5.         for (int i = 2; i <= 100; i++) {
  6.             double xp = Math.floor(Math.pow(50D,1D+(0.08D*(i-2))));
  7.             BigDecimal bd = new BigDecimal(xp);
  8.             System.out.println("XP to level "+i+": "+bd.toString());
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement