double cost_factor(int num_of_sections, int num_of_students) {
double cost;
cost = 35 * num_of_sections / num_of_students;
printf("Cost = %.2lf\n", cost);
return cost;
}
num_of_sections と num_of_students に何を入力しても、戻り値は 1.00 です。11 (num_of_sections) と 364 (num_of_students) を入力すると、1.06 のはずなのに 1.00 になります。誰でも自分のエラーを特定できますか?