Files
python/RuMenJingDian/LiTi/P_2_5.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

17 lines
418 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false); //读入输出优化的强迫症
int a, b, c;
while (true) {
cin >> a >> b >> c;
//设置输出为小数点后c位
cout << fixed << setprecision(c);
if (a == 0 && b == 0 && c == 0) break;
double d = 1.0 * a / b;
cout << d << endl;
}
return 0;
}