Since it's mobile, in case you wanted to still use int
to use less resources on the device, (after realising that integer division is the default when using integers), you could perform the multiplication first so that you don't get rounded to 0:
int value = (right*100) / tries;
It won't be very accurate but you do have a range of values you're checking by anyway. Just a thought.