Advertisement
OfficialSepptem

Untitled

Dec 12th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public class Population {
  2. private double populationStart = 7.6;
  3. private double populationStartGrow = 0.08;
  4. private int time = 31;
  5. public void calculate() {
  6. double multiplikator = (populationStart+populationStartGrow)/populationStart;
  7. double neuPop = populationStart;
  8. for(int i = 0; i<time; i++){
  9. neuPop = neuPop*multiplikator;
  10. System.out.println(neuPop);
  11. }
  12. }
  13. }
  14. //7,6milliarden
  15. //80millionen / 0,08milliarden
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement