Zeug
public text v1 · immutable//hieraus natuerlich eine O.java erstellen...
public class O
{
private static int f4(int n)
{
int counter = 0;
int step = 0;
for (step = n; n > 0; n /=2)
for (int start = 0; start < step; start++)
for (int i = start; i < n; i+=step)
counter++;
return counter;
}
public static void main(String args[])
{
System.out.println(f4(10000));
}
}