algorithm
더블릿|dovelet - 정수,소수부 출력/d_f
블루건
2016. 7. 21. 16:38
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { float N; cin >> N; cout << floor(N) << fixed << setprecision(2) << " " << N - floor(N); return 0; } | cs |