Files
python/TangDou/LuoGuBook/P5705.cpp

19 lines
290 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
double a;
int B;
int main() {
cin >> a;
b = a * 10;
int n = 0;
while (b) {
n++;
int c = b % 10;
b /= 10;
printf("%d", c);
if (n == 1) printf(".");
}
return 0;
}