"Halloween Candy "how to solve this problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

"Halloween Candy "how to solve this problem

My attempt: https://code.sololearn.com/crujs6us41nX/?ref=app

13th Jun 2020, 10:46 PM
Myrat Orjyyev
Myrat Orjyyev - avatar
9 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
14th Jun 2020, 1:22 AM
BroFar
BroFar - avatar
+ 1
Use round to round the round the decimal number
14th Jun 2020, 3:57 PM
Mandip Adhikari
Mandip Adhikari - avatar
14th Jun 2020, 4:30 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
0
it should be so but it doesn’t work
14th Jun 2020, 4:32 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
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
14th Jun 2020, 4:35 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
0
here is a description
14th Jun 2020, 4:35 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
0
Yes, of course thought. how to do it please tell me
14th Jun 2020, 5:18 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
0
how to make the answer round
14th Jun 2020, 5:20 AM
Myrat Orjyyev
Myrat Orjyyev - avatar
0
Thank you so much
14th Jun 2020, 7:40 PM
Myrat Orjyyev
Myrat Orjyyev - avatar