### java

· Like aioobe said you won t be able to get the exact ratios due to rounding but lukas has probably your best solution Though even this won t work if you use a funky factor which is 101/17 I just picked a prime and a number over 100 so that is would be outside the loop not really a practical display size just illustrating a point