[ create a new paste ] login | about

Link: http://codepad.org/QUaLVYB5    [ raw code | output | fork ]

C++, pasted on Mar 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
	double x;
	cout << "Nhap x: ";
	cin >> x;
	float f = x;	

	cout << setprecision(9) << f << endl; 

	return 0;
}


Output:
1
Nhap x: 0


Create a new paste based on this one


Comments: