using System; public class Program { public static int dayCount = 0; public static int maxDay = 365; //Maksimum gün sayısı public static float currentAmount = 0.00121375f; //Başlangıç Değeri public static float targetAmount = 0.05f; //Hedeflenilen Değer (Max Gün hesabı için 0 yapın) public static float percentage = 103f/100f; //Günlük Faiz Oranı public static void Main() { CalculateTotal(); } public static void CalculateTotal() { if(dayCount >= maxDay) return; if(targetAmount > 0 && currentAmount >= targetAmount) return; currentAmount = currentAmount * percentage; dayCount++; Console.WriteLine("Day " + dayCount + ": " + currentAmount); CalculateTotal(); } }