Compound interest
Sign in to test your solution.
// Compound interest program
using System;
class Submission
{
// -------------------------
// Subprograms
// -------------------------
// Calculate compound interest
static void compound(int balance, double interest_rate, int target_balance)
{
Console.WriteLine($"Year: {year}: Balance: £{balance}");
}
// -------------------------
// Main program
// -------------------------
public static void Main(string[] args)
{
compound(balance, interest_rate, target_balance);
}
}
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.