#include<iostream>
using namespace std;
int main(){
int m,n,x,y;
cin>>m>>n;
int a[100];
for(int i=0;i<=100;i++){
x=m/n;
y=m%n;
a[i]=x;
m=y*10;
}
for(int i=0;i<=100;i++){
if(i==1){
cout<<".";
}
cout<<a[i];
}
}
五代码实现
标签:std,ix,includeusing,cout,int,32 From: https://www.cnblogs.com/guozi6/p/17435967.html