You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
317 B
20 lines
317 B
2 years ago
|
#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;
|
||
|
}
|