posted 17 years ago
I was told to write a small program that finds the floor of logb(X). I took the main functionality of the program to create what I pasted below. In the program I have below, the base and x-value are already there - it's just for the concept.
I was told to use nested loops. However, I feel that the way I did it is fine. Would it be better if I used a nested loop? I'm not sure I would know exactly how to go about doing it, thought I'm sure there are a lot of ways to do it.
Thanks.