0
This question
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
3 odpowiedzi
+ 9
Amitabh Pandey Welcome to our forum
We don't do homeworks here.
You can show your attempt first
Also go through this
https://www.sololearn.com/discuss/1316935/?ref=app
+ 3
Pls don't spam here.This is a Q&A disscussion where people ask programming related question.
Pls see the reference:
https://www.sololearn.com/discuss/1316935/?ref=app
if you want to give it as an assignment ,this page is for you:
https://www.sololearn.com/Discuss/1270852/post-your-code-request-here
+ 3
Post it in your activity feed