vault backup: 2023-10-27 19:03:01

This commit is contained in:
2023-10-27 19:03:01 +02:00
parent dcc7ce922f
commit f3c5c79da8
331 changed files with 23583 additions and 102 deletions

View File

@@ -0,0 +1,19 @@
// Reihe.java
import java.io.*;
public class Reihe
{
public static void main(String[] args) throws IOException
{
double s=0.0,a_k=0.0;
for (int k=0; k<=30; k++)
{
s=s+Math.pow(2.0/3.0,k); // geometrische Reihe q=2/3
System.out.println("n = "+ k +" S_n = "+ s);
}
}
}