0

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)??!!

2
Contributors
1
Reply
17
Views
2 Weeks
Discussion Span
Last Post by JamesCherrill
0

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

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.