如下
#include <bits/stdc++.h> using namespace std; int main() { double a,b,c; int d; cin>>a>>b; d=a/b; c=a-b*d; cout<<c; return 0; }
抄就完事了!