Hello, So I'm supposed to write a program that tells the user how much caffeine is in their body every hour after consumption.
13% of caffeine is eliminated from the body each hour.
The program is to ask the user to Input their name, the amount of caffeine intake in mg, and how many hours they would like data for.
The Output must have a listing of caffeine remaining in the body after each hour until the users limit is reached. I'm to use at least 1 while loop, at least 1 for loop, and at least 1 do while loop.
I understand the basic concept of loops and so far I have a chunk of the program working, but I am unsure how to make the output for the remaining caffeine in the body stop when the user's input of hours is reached. As of right now I'm having the program output all the information until the remaining caffeine level is less than 1 mg. How can I fix this?