diff --git a/Kontrollstrukturen/Kontrollstrukturen afg1/.idea/.name b/Kontrollstrukturen/Kontrollstrukturen afg1/.idea/.name
new file mode 100644
index 0000000..002da1d
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg1/.idea/.name
@@ -0,0 +1 @@
+Main.java
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/.gitignore b/Kontrollstrukturen/Kontrollstrukturen afg2/.gitignore
new file mode 100644
index 0000000..f68d109
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/.gitignore
@@ -0,0 +1,29 @@
+### IntelliJ IDEA ###
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/.gitignore b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/misc.xml b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/misc.xml
new file mode 100644
index 0000000..6f29fee
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/modules.xml b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/modules.xml
new file mode 100644
index 0000000..0a05cbe
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/vcs.xml b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/Kontrollstrukturen afg2.iml b/Kontrollstrukturen/Kontrollstrukturen afg2/Kontrollstrukturen afg2.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/Kontrollstrukturen afg2.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Kontrollstrukturen/Kontrollstrukturen afg2/src/Main.java b/Kontrollstrukturen/Kontrollstrukturen afg2/src/Main.java
new file mode 100644
index 0000000..eb1160c
--- /dev/null
+++ b/Kontrollstrukturen/Kontrollstrukturen afg2/src/Main.java
@@ -0,0 +1,19 @@
+
+public class Main {
+ public static void main (String[] args){
+
+ int anfang = 1;
+ int n;
+ int speicher = 0;
+
+ n = 20;
+
+ for (int i = anfang; i < 21; i++) {
+
+ speicher += i;
+ System.out.println(speicher);
+
+ }
+
+ }
+}
\ No newline at end of file