A dark mage casted a black spell On the fountain of life.So,instead of producing the elixir of life,the fountain now produces the elixir of life and the dark poison at rate r (litet/sec). the fountain will become deadly when the amount of poison is the as that of elixir in the fountain.
Write a C++ program that input the initial volume of elixir in the fountian before the spell was costed ,the rate of elixir production (e liters/sec),and the rate of poison production (r),It should output the time,t in second when the mixture becomes deadly.
Note (cannot use while loop)
please help me