+ 1

How do we give decimal inputs and outputs in C++

16th Oct 2020, 11:23 AM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
3 Answers
+ 1
by working with floats or typecasting float and using the print specifier %f printf("%f",float_num)
16th Oct 2020, 11:27 AM
Slick
Slick - avatar
+ 1
16th Oct 2020, 11:47 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
0
You can use float or double data type double deci=5.678 std::cout<<deci;
16th Oct 2020, 3:25 PM
A S Raghuvanshi
A S Raghuvanshi - avatar