hey guys I'm new in perogramming the question is that
(if your salary is 10000 after how many years will be doubled if each year increases by %5)??!!

Recommended Answers

before or after taxes? :)

Jump to Post

All 2 Replies

THink about how you do that...
it's a loop.
you start with salary = 10,000
in each pass of the loop you add 5% to that
when the salary reaches 20000 you exit the loop
the answer is then the number of times you went round the loop

before or after taxes? :)

commented: Also, tariffs. Can't get around that now. +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.