// Directions: Intermediate #1-3
// 1) Add code to the Main method:
// a) Create a loop that will start with 25 cents and increase in value 1%.
// b) Output the value after 365 days.
// c) The answer should by $9.45
// 2) Submit your dotnetfiddle link in Blackboard.
using System;
public class Program
{
public static void Main()
//Declare variables and initialize with $0.25 starting value and 1% interest rate
double dblValue = 0.25;
double dblInterest = 0.01;
double dblDays;
//Loop to increment days to 365
for(dblDays=1; dblDays<=365; dblDays+=1)
//Calculate compound interest
dblValue = dblValue * (1 + dblInterest);
}
//Output ending value after 365 days (using "$" + "n2" because strange symbol is showing up if I use "c2")
Console.WriteLine("$" + dblValue.ToString("n2"));