how to get average of 2 & 3 in cpp | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

how to get average of 2 & 3 in cpp

I try to find averge between them by (2+3)/2 but it results lesser value between them

30th Mar 2018, 3:42 AM
Suneel Paudel
Suneel Paudel - avatar
2 Respuestas
+ 1
Float result = (2+3)/2;
30th Mar 2018, 3:48 AM
Code Monkey
0
thank you
30th Mar 2018, 3:53 AM
Suneel Paudel
Suneel Paudel - avatar