mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-29 04:22:12 +01:00
19 lines
372 B
Java
19 lines
372 B
Java
package schleifen;
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.InputStreamReader;
|
|
|
|
public class Fakultaet {
|
|
public static void main(String[] args) {
|
|
|
|
int ganzZahl = 120;
|
|
int result = 1;
|
|
int i = 1;
|
|
while (result != ganzZahl){
|
|
result = result * i;
|
|
System.out.println(result);
|
|
i++;
|
|
}
|
|
}
|
|
}
|