#include <iostream>
using namespace std;
int i,a[5];
double k;
int main()
{
cin >>k;
while (k!=0 && i<3)
{
i++;
k*=2;
a[i]=int (k);
k-=a[i];
}
cout <<"0.";
for (i=1;i<=3;i++)
cout <<a[i];
return 0;
}
如果對大家有幫助,請多多支持,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/297658.html
標籤:其他
