Simple c# for-loop program for calculating theoretical earnings from investing (beginner) I am new to programming and "programming thinking" as well. I have created a simple program that calculates future earnings from investing. It seems to be working correctly, but I want to be sure and ask some smarter guy out here, whether the program is really working as it should or whether it could be written in a better and cleaner form. Input in first month is 15000, Other months: 1000, End of time period, when I want to see the earnings: 72 months, growth/month: 0.75 %; Each new input grows every month by its 0.75 %

static void Main(string[] args)
        {
            double inpInt, inpMonth, inpMonthTrue, growMonth, monthCount, sum, inpTotal, earnTotal;
            inpInt = 15000;
            inpMonth = 0;
            inpMonthTrue = 1000;
            growMonth = 0.75;
            monthCount = 72;
            inpTotal = inpInt + inpMonthTrue * (monthCount - 1);
            sum = inpInt + inpMonth;
            inpInt += inpInt / 100 * 0.75;
            monthCount--;
            Console.WriteLine("Value in months:" );
            Console.WriteLine(inpInt);
            for (int i = 0; i &lt; monthCount; i++)
            {
                inpMonth += inpMonthTrue;
                inpInt += inpInt / 100 * growMonth;
                inpMonth += inpMonth / 100 * growMonth;
                sum = inpInt + inpMonth;
                Console.WriteLine(sum);
            }
            earnTotal = sum - inpTotal;
            Console.WriteLine(String.Format("Total input: {0}", inpTotal));
            Console.WriteLine(String.Format("Total value: {0}", sum));
            Console.WriteLine(String.Format("Total earnings: {0}", earnTotal));
            Console.ReadLine();
        }


Thanks
Here are some points that I think can make your code look good -


You can improve the readbility like you can group every set of operations with one line space. Like 

The local variables can be renamed better as they're not clear to me when I look at the code directly without reading the problem statement. For example inpMonth and inpMonthTrue are confusing.
You can include code comments on the logic that you're performing. For example in the below snippet, it is unclear what exactly is happening.  





The main() method can be broken into multiple meaningful methods to improve readability. Assuming that you'll be taking the input from the console



This was just a gist of what I'm trying to convey. It needn't be the exact names, you can create any number of methods for grouping the related logic and code. Breaking a big tall method into multiple meaningful chunks gives more clarity.
Plus, it is always helpful to detect any bugs that arise in the software, so you know where exactly to look into if the Interest is coming wrong for instance.