20 lines
317 B
C++
20 lines
317 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
float a;
|
|
cin >> a;
|
|
int b = int(a * 10);
|
|
bool first = true;
|
|
while (b) {
|
|
cout << b % 10;
|
|
if (first) {
|
|
cout << ".";
|
|
first = false;
|
|
}
|
|
b /= 10;
|
|
}
|
|
return 0;
|
|
}
|