0
Can anyone write a code which you can input the real number???
5 Respostas
+ 1
By real numbers, do you mean fractions? Irrational numbers? Square root of non-perfect square numbers?
+ 1
input real number not integer
0
What?
0
something like that
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;