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

28th Jul 2020, 6:22 PM
Amitabh Pandey
Amitabh Pandey - avatar
3 Answers
+ 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
28th Jul 2020, 6:25 PM
Aditya
Aditya - avatar
+ 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
28th Jul 2020, 6:27 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 3
Post it in your activity feed
28th Jul 2020, 7:27 PM
R🍁🇼🇳
R🍁🇼🇳 - avatar