0

Can anyone write a code which you can input the real number???

20th Jul 2018, 3:04 PM
Nguyễn Quang Huy
Nguyễn Quang Huy - avatar
5 Respostas
+ 1
By real numbers, do you mean fractions? Irrational numbers? Square root of non-perfect square numbers?
20th Jul 2018, 3:11 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
input real number not integer
20th Jul 2018, 3:11 PM
Nguyễn Quang Huy
Nguyễn Quang Huy - avatar
0
What?
20th Jul 2018, 3:08 PM
KrOW
KrOW - avatar
0
something like that
20th Jul 2018, 3:13 PM
Nguyễn Quang Huy
Nguyễn Quang Huy - avatar
0
Did you mean numbers with decimal? Then, you should write: double x; cin >> x; // if you enter 3.1428 cout << x; // outputs 3.1428 return 0;
20th Jul 2018, 3:47 PM
777
777 - avatar