I am a novice in need of help. I have to write a program using a while loop.
Start at age 30 invest 5000. at 10% a year. How old are you when you reach one million? Please help

while (amount < 1000000)
{
  add interest to amount
  increase age
}
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.