Class1.cs 322 B

123456789101112131415161718
  1. using System.Diagnostics;
  2. namespace Bank
  3. {
  4. public class Class1
  5. {
  6. public double Vklad(double N, double d, double M)
  7. {
  8. double v = N;
  9. for (int i = 0; i < M; i++)
  10. {
  11. v += (v*d)/100;
  12. }
  13. return v;
  14. }
  15. }
  16. }