0
"Halloween Candy "how to solve this problem
My attempt: https://code.sololearn.com/crujs6us41nX/?ref=app
11 Answers
+ 1
Please show us your attempt(s)...
Code coach is designed to test your skills on the basics....
Always use the 8 rules for getting help from the community.
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
Thanks and happy coding
+ 1
Use round to round the round the decimal number
0
it should be so but it doesnât work
0
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
0
here is a description
0
Yes, of course thought. how to do it please tell me
0
how to make the answer round
0
Thank you so much