Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double SumCalc(int x)
- {
- double sum = 0;
- for(int i = 1, j = 2; i <= 23 && j <= 23; i++, j++)
- {
- sum = (sum + (i/Math.pow(x, j)));
- }
- return sum;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement