Files
python/C++课程/第七课顺序结构程序设计/p56_4.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

17 lines
271 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//输入用例 :73.263 0.9973
//预期输出结果:0.4601
double a, b, r;
int k;
cin >> a >> b;
k = (int)(a/b);
r = a - k * b;
cout << r << endl;
return 0;
}