Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 0.36 KB | None | 0 0
  1. package hue04;
  2.  
  3. /**
  4.  *
  5.  * @author Anastasia
  6.  */
  7. public class Main {
  8.  
  9.      public static void main(String[] args) {
  10.        
  11.        //int e^x = 1+x/1! +x^2/2! +x^3/3! +......
  12.        
  13.        private static int apfelbaum(int n){
  14.            
  15.          int summe = 0;
  16.        for(double x = 0; x <= n; x++)
  17.     {
  18.      summe += x;
  19.      }    
  20.      return summe;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement