70分,让我改得上蹿下跳,求助!!!!!!!!
查看原帖
70分,让我改得上蹿下跳,求助!!!!!!!!
1030197
nuoxi6868楼主2023/8/7 21:34
#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b,n,h,s;
	cin>>a>>b>>n;
	h=(int)a/b;
	for(int i=0;i<n;i++)
	{
		h*=10;
	}
	s=(int)h%10;
	cout<<(int)s;
	return 0;
}
2023/8/7 21:34
加载中...