#include<iostream>
#include<stdlib.h>
using namespace std;
main()
{
int a,b,N;
while(cin>>a>>b>>N)
{
cout<<a/b<<".";
a%=b;
while(N--)
{
a*=10;
cout<<a/b;
a%=b;
}
cout<<endl;
}
}
#include
#include
using namespace std;
main()
{
int a,b,N;
while(cin>>a>>b>>N)
{
cout<<a/b<<".";
a%=b;
while(N--)
{
a*=10;
cout<<a/b;
a%=b;
}
cout<<endl;
}
}
幹你確定這樣解AC??