[solved ] Please need your help .The following problem in the community section is displaying that there is a bug in my code .
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 __________________________________________ #include <iostream> #include<cmath> using namespace std; int main() { int houses; cin>>houses; int a ; a = round(200.0/houses); cout<<a; return 0; }