Answer:
In C:
#include <stdio.h>
#include <math.h>
int main(){
float f0,r,temp;
r = pow(2.0,1.0/12);
printf("f0: "); scanf("%f", &f0);
temp = f0;
for(int i = 0; i<=4;i++){
f0 = f0 * pow(r,i);
printf("%.2lf ", f0);
f0 = temp; }
return 0;
}
Explanation:
This declares f0, r and temp as float
float f0,r,temp;
This initializes r to 2^(1/12)
r = pow(2.0,1.0/12);
This prompts the user for f0
printf("f0: "); scanf("%f", &f0);
This saves f0 in temp
temp = f0;
This iterates the number of keys from 0 to 4
for(int i = 0; i<=4;i++){
This calculates each key
f0 = f0 * pow(r,i);
This prints the key
printf("%.2lf ", f0);
This gets the initial value of f0
f0 = temp; }
return 0;
Pretty sure it's Fiber Distributed Data Interface
Answer:
'='
Explanation:
The equal ('=') is the character that is used to assign the value in the programming.
In the programming, there is a lot of character which has different meaning and uses for a different purpose.
like '==' it is used for checking equality between the Boolean.
'+' is a character that is used for adding.
'-' is a character that is used for subtraction.
similarly, '=' used for assigning.
for example:
a = a + b;
In the programming, the program evaluates the (a + b) first and then the result assigns to the variable.