Division by str.length() shows nothing [closed]

This is because of integer division do round(1.0/length); instead. Also use float or double.

Leave a Comment