<prompt> Kuandika programu C mahesabu ya kiwango cha riba mchanganyiko wa uwekezaji.  <response>: Here is a C program that calculates the compound interest rate of an investment:csharpusing System;class Program static void Mainstring args Declare variables double principal, interestRate, years, compoundInterest; Get user input Console.WriteEnter the principal amount: ; principal Convert.ToDoubleConsole.ReadLine; Console.WriteEnter the interest rate in decimal form: ; interestRate Convert.ToDoubleConsole.ReadLine; Console.WriteEnter the number of years: ; years Convert.ToDoubleConsole.ReadLine; Calculate compound interest compoundInterest principal Math.Pow1 interestRate, years; Output result Console.WriteLineThe compound interest is: compoundInterest.ToStringC2; This program prompts the user to enter the principal amount, interest rate, and number of years for the investment. It then calculates the compound interest using the formula A P 1 r t where A is the compound interest, P is the principal amount, r is the interest rate, and t is the number of years. The calculated result is displayed to the user in currency format. 