0

The first thing that sticks out to me is indentation. But I'm going to recommend some other changes, so I'll address indentation last.
Let's give our variables some better, more descriptive names, and let's declare our constants as constants. And since we're taking in a floating point number f...