hello, im trying to display a header in my output and have looked at a code from an example in my book but added a few more variables to it. The book only has two but I have five and after I changed the example to include all my five it only shows the first two.
here is the part of my code
// display headers
Console.WriteLine("Year{0, 20}", "Rate", "Amount", "Interest", "New Amount");
this is the output it shows
Year Rate
but i want it to show
Year Rate Amount Interest New Amount