Browse Source

geändert am 24.10.2023

master
leonmcfly 8 months ago
commit
6ca8526699

+ 3
- 0
.idea/.gitignore View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

+ 6
- 0
.idea/misc.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="corretto-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Prog3.iml" filepath="$PROJECT_DIR$/Prog3.iml" />
</modules>
</component>
</project>

+ 10
- 0
.idea/runConfigurations.xml View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

+ 6
- 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

+ 11
- 0
Prog3.iml View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

BIN
out/production/Prog3/Praktikum01/Zahlenfilter.class View File


+ 34
- 0
src/Praktikum01/Zahlenfilter.java View File

@@ -0,0 +1,34 @@
package Praktikum01;



public class Zahlenfilter {

public static void main(String[] args) {
int count = 1;
counter(count);
}

public static void counter(int c){

for(int i = 0; i < 200; i++){
int preC = c-1;
int ergebnis = c + preC;
int ergebnis2 = preC + c;

if (c % 5 == 0){
System.out.println(c + " ist durch 5 teilbar");
c++;
}else if(c % 10 == 9){
System.out.println(c + " endet auf 9");
c++;
}else if(ergebnis % 3 == 0 && ergebnis2 % 3 == 0){
System.out.println(c + " und " + preC + " addiert ergeben " + ergebnis + " und " + ergebnis2 + " ist durch 3 teilbar." );
c++;
}else{
System.out.println(c);
c++;
}
}
}
}

Loading…
Cancel
Save