Compound interest
Log in om je oplossingen te testen.
// 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);
}
}
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.