+ 1

problem

https://www.sololearn.com/coach/22?ref=app my answer was: c=int(input()) print(int(((c*5+40)/10)+(c*5+40))) what's wrong?

12th Jul 2020, 8:53 PM
reza mousavi
reza mousavi - avatar
3 Answers
+ 13
int() converting float to round down integer You need ceil() instead #dont forget to import ceil from math import ceil
12th Jul 2020, 9:06 PM
៎Ridwan_
៎Ridwan_ - avatar
+ 2
You are missing round up result there.. Before converting to int, use " ceil" function on result... [Try and reply if you don't get.. Or not understood]
12th Jul 2020, 9:06 PM
Jayakrishna 🇼🇳
+ 2
Use round() function instead of int() in line 2
12th Jul 2020, 9:25 PM
Elijah Oyerinde
Elijah Oyerinde - avatar