+ 1

【SOLVED)】Whats worng in this code???? Only 2 out of 5 cases are correct

Halloween Candy You go trick or treating with a friend and all but three of the houses that you visit are giving out candy. One house that you visit is giving out toothbrushes and two houses are giving out dollar bills. Task Given the input of the total number of houses that you visited, what is the percentage chance that one random item pulled from your bag is a dollar bill? Input Format An integer (>=3) representing the total number of houses that you visited. Output Format A percentage value rounded up to the nearest whole number. Sample Input 4 Sample Output 50 https://www.sololearn.com/coach/4?ref=app https://code.sololearn.com/cPnIf7Eh1xii/?ref=app

23rd Aug 2020, 9:02 AM
Dikki
Dikki - avatar
4 ответов
+ 2
Yea it's working.Thanks a ton!
23rd Aug 2020, 9:30 AM
Dikki
Dikki - avatar
0
Still not getting the output
23rd Aug 2020, 9:16 AM
Dikki
Dikki - avatar