daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public static double[] generateBenfordNumbers(double initialAmount, double growthRate, int numberPeriods) {
  2.  
  3.         double[] growthNumber = new double[numberPeriods];
  4.  
  5.         growthNumber[0] = initialAmount;
  6.                 for(i=1,i=numberPeriods,i++) {
  7.                         growthNumber[i] = (initialAmount * (1+growthRate)); //generate each of the growth numbers
  8.                 }
  9.                 return growthNumber;
  10.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top