added all past projects

This commit is contained in:
Hannes
2017-11-10 00:13:57 +01:00
parent 5f63f0c599
commit 8c94608805
1391 changed files with 109456 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package if_01;
import java.util.*;
public class IF_01 {
public static void main(String[] args) {
Random generator = new Random();
int zahl1 = generator.nextInt();
double ergebnis = 0;
if(zahl1 > 0)
{
ergebnis = Math.sqrt(zahl1);
System.out.println("Wurzel aus " + zahl1 + " ergibt " + ergebnis);
}
else
{
System.out.println("Aus diser Zahl (" +zahl1+ ") kann keine Wurzel aus einer Zahl kleiner 0 ziehen.");
}
}
}