how would you write a for loop that calculates the total investment over 40 years if a one pays $500 each month but every 2 years the payment increases 10%?
dlube
0
Newbie Poster
Recommended Answers
Jump to Post//Begin loop: 0 to 40 (years) //Year_Total = Year_total + Monthly_payment * 12 //If the Loop_Counter / 2 has no remainder, then it has to be a "2nd Year" //Monthly_payment = Monthly_payment * 1.10 //End Loop
All 4 Replies
Clinton Portis
211
Practically a Posting Shark
mrnutty
761
Senior Poster
smrati.katiyar
0
Newbie Poster
smrati.katiyar
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.