+ 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
4 RĂ©ponses
+ 2
Yea it's working.Thanks a ton!
0
Still not getting the output