I have a C program due today and I can't for the life of me get it working. I have tracked down what I think is the final bug but I have no idea HOW to fix it. I have a number that I need to convert into a percent (Ex. Go from 23 to .23) but when I divide by 100 it turns into 0 every time. I think what I need to do is make it "float". How do I go about doing that? Or am I on the wrong track? Someone please help me!
Here is what the program is supposed to do, if it helps.
I just can't get it to calculate the interest.
Here is what the program is supposed to do, if it helps.
I just can't get it to calculate the interest.