Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package hue04;
- /**
- *
- * @author Anastasia
- */
- public class Main {
- public static void main(String[] args) {
- //int e^x = 1+x/1! +x^2/2! +x^3/3! +......
- private static int apfelbaum(int n){
- int summe = 0;
- for(double x = 0; x <= n; x++)
- {
- summe += x;
- }
- return summe;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement