Answer:
public static void main(String[] args) {
double f0 = 440.0;
double r = Math.pow(2, 1.0/12.0);
for(int n=0; n<=4; n++) {
double f = f0 * Math.pow(r,n);
System.out.printf("%.2f ", f);
}
}
Step-by-step explanation:
You could also do it with a running variable, much shorter, but not using the formula as required:
public static void main(String[] args) {
double f = 440.0;
double r = Math.pow(2, 1.0/12.0);
for(int n=0; n<=4; n++) {
System.out.printf("%.2f ", f);
f *= r;
}
}