From dffbb00f9076cc941898b3c995d985eaaf6ee7f8 Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Mon, 6 Feb 2023 10:28:43 +0100 Subject: [PATCH] Fakultaet Rechner --- src/main/java/src/TasksFrame.java | 65 ++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index 1ad32df..03b70c4 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -75,6 +75,8 @@ public class TasksFrame extends JFrame { setupArea(); + setupFakultaet(); + setupSumFromTo(); setup5ModList(1, 20); @@ -655,6 +657,55 @@ public class TasksFrame extends JFrame { return a-b; } + public int Fakultaet(int a){ + int sum = 0; + int faku=1; + while ( sum setup5ModList(int from, int to) {