What is the output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of this code?

I got this code: https://code.sololearn.com/cMoHerPRibW0/#cpp Input is stated in the code and its : 12 20 8 and the output I get is 14, but the expected one is 15, can someone explain me where I made mistake here..

5th Feb 2019, 10:06 PM
Edin Hajdarevic
Edin Hajdarevic - avatar
1 Answer
+ 1
Fixed, I didn't round it as it should be. Will update the code later
5th Feb 2019, 10:24 PM
Edin Hajdarevic
Edin Hajdarevic - avatar