// Directions: Intermediate #2-1
// 1) Add code to the Main method:
// a) Create a loop that will start with 25 cents and increase in value 1%.
// b) The sum of the value of the account should accumulate. (.25 for day 1, .51 for day 2)
// c) Output the accumuluating value until the new value is greater than 100 and the number of days.
// 2) Submit your dotnetfiddle link in Blackboard.
using System;
public class Program
{
public static void Main()
double cent = 0.25;
double runningTotal;
int Days = 0;
do {
runningTotal = cent * 0.01; //You can also do cent / 100
cent = runningTotal + cent;
Days++;
}
while (cent < 100);
Console.WriteLine("After "+ Days +" days, your you will have "+ cent.ToString("c") + ".");