Can someone tell me what I'm doing wrong? Everything seems to be ok to me? 🥺
/*If you were to visit houses, several give you candy, two houses give you dollars, and one house gives you a toothbrush. At the end of the tour. What is the probability (in %)of taking 1 dollar bill out of my bag? Example If you visited four houses, one would be candy, two would be dollars, and one would be a toothbrush. A 2 in 4 chan*/import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner input = new Scanner(System.in); int houses = input.nextInt(); if(houses>=3){ double parte=houses-2; double total=houses; double uno=1; double division=(uno-parte/total)*100; int redondeo=(int)(division*10); if(redondeo%10>=5){ int num=(int)division; System.out.println(num+1); } else{ int num=(int)division; System.out.println(num); } } } }