using static System.Console;
using static System.Math;
public class Program {
public static void Main() => WriteLine(CalculatesInterest(100M, 5, 0.01M));
public static decimal CalculatesInterest(decimal valorInicial, int meses, decimal juros) => decimal.Round(valorInicial * (decimal)Pow(1.0 + (double)juros, meses), 2);
}
//https://pt.stackoverflow.com/q/443699/101
dXNpbmcgc3RhdGljIFN5c3RlbS5Db25zb2xlOwp1c2luZyBzdGF0aWMgU3lzdGVtLk1hdGg7CgpwdWJsaWMgY2xhc3MgUHJvZ3JhbSB7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpID0+IFdyaXRlTGluZShDYWxjdWxhdGVzSW50ZXJlc3QoMTAwTSwgNSwgMC4wMU0pKTsKCXB1YmxpYyBzdGF0aWMgZGVjaW1hbCBDYWxjdWxhdGVzSW50ZXJlc3QoZGVjaW1hbCB2YWxvckluaWNpYWwsIGludCBtZXNlcywgZGVjaW1hbCBqdXJvcykgPT4gZGVjaW1hbC5Sb3VuZCh2YWxvckluaWNpYWwgKiAoZGVjaW1hbClQb3coMS4wICsgKGRvdWJsZSlqdXJvcywgbWVzZXMpLCAyKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvNDQzNjk5LzEwMQ==