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

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

Browse More Popular Posts

Leave a Comment