diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index 400f4e8..1ad32df 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -100,6 +100,8 @@ public class TasksFrame extends JFrame { } + + private void setupExponent() { JPanel jPanel = setupPanel("Potenzrechner"); @@ -732,6 +734,8 @@ public class TasksFrame extends JFrame { } + + public int calcArea(int a, int b) { int area = a * b; @@ -745,7 +749,6 @@ public class TasksFrame extends JFrame { } - public void setupSumFromTo(){ JPanel jPanel = setupPanel("Sum from to"); @@ -797,6 +800,18 @@ public class TasksFrame extends JFrame { return sum+to; } + public int Fakultaet(int a){ + int sum = 0; + int faku=1; + while ( sum