[Solved] Count how many days it will take using the while loop
[ad_1] I apologize in advance, for I’m still actively learning C++, but think I can reproduce your desired output in PHP while loops. From what I could gather, the formula you would need is n = n – i with i being the iterator that doubles each day and n being the number of bags… … Read more