提交时间:2020-10-31 18:55:55
运行 ID: 8244
#include <bits/stdc++.h> using namespace std; int main() { int n,m,i=1,a,b,z; cin>>a>>b>>n; m=a; // z=m/b; // m=m*10%b; // i++; while(i<=n) { z=m*10/b; m=m*10%b; i++; } cout<<z<<endl; return 0; }