Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Loop calculation issue

$
0
0

I`m trying to calculate the output X to do this i have the formula:

A *( B / 100) = c

C = A (because output x is the answer after loop this formula 5 times)

(The formula calculates the Nettovalue of the value after 5 years of bankrent)

this is my code:

 public int Vijfjarenplan() {
            int number = 5;
            for (int i = 0; i < number; i++)
            {
               double Nbedrag =  bedrag * (1 + rente / 100);

              (* Nbedrag = bedrag *)
            }
            return Nbedrag;
        
        }

Could you tell me how to do this? i still cant find it out after lookin for it on the internet.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>