-
HackerRank.com Practice > C++ > Introduction > Basic Data Typeshackerrank.com 2020. 4. 16. 20:21728x90
#include <iostream> #include <iomanip> using namespace std; int main() { int i; long l; char c; float f; double d; cin >> i >> l >> c >> f >> d; cout << i << '\n'; cout << l << '\n'; cout << c << '\n'; cout << fixed << setprecision(3) << f << '\n'; cout << fixed << setprecision(9) << d << '\n'; return 0; }
728x90'hackerrank.com' 카테고리의 다른 글
HackerRank.com Practice > C++ > Introduction > For Loop (0) 2020.04.17 HackerRank.com Practice > C++ > Introduction > Conditional Statements (0) 2020.04.16 HackerRank.com Practice > C++Introduction > Input and Output (0) 2020.04.16 HackerRank.com Practice > C++ > Introduction > Say "Hello, World!" With C++ (0) 2020.04.16 Java 1D Array (Part 2) / hackerrank.com (0) 2019.12.10