Hello for example I have code something like this:
double mealCost = scan.nextDouble(); // original meal price
int tipPercent = scan.nextInt(); // tip percentage
int taxPercent = scan.nextInt(); // tax percentage
double totalPercent=tipPercent/100*mealCost;
And when I run this code with this data :
mealCost=20
tipPercent=12.00
taxPercent=8
As a result I get 0, but it must be 2.4, and I can't understand why.