I'm experiencing a problem within my program. I am to make a program that will let the user input 30 days of allowance and all of their accumulated expenses for that month then the program will subtract the allowance from the expenses. I am to use two dimensional arrays, pointers, structures and user-defined functions.
Long story short, I haven't gotten around the expenses part yet but I'm already experiencing a problem. Whenever I try my code, the sum of the allowance I input exceeds the actual answer. For example, I will input "1" for every day. Then the sum should be 30, correct? But the sum seems to exceed that. It seems to be a logical error on my part but I don't see it.