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.