How do you output a float value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you output a float value?

20th Sep 2019, 9:27 AM
Trudie
4 Answers
+ 1
try float someVariable = 4.0; print someVariable; so define the variable as a float first https://www.sololearn.com/learn/CPlusPlus/1622/
20th Sep 2019, 10:27 AM
Brave Tea
Brave Tea - avatar
0
have you gone through the c++/cpp course?
20th Sep 2019, 9:29 AM
Brave Tea
Brave Tea - avatar
0
Yes but I haven't completed the course yet
20th Sep 2019, 10:11 AM
Trudie
0
OK, Thanks
20th Sep 2019, 7:45 PM
Trudie