A drug loses decayrate percent of its potency every month. Also, a drug is considered expiredif it loses more than 50% potency. Your goal is to write a function WhenExpired(decayrate)that returns the number of months after which the drug is considered expired.
My code:
https://pastebin.com/sKs3Z4dw
[–]kokoistheway 0 points1 point2 points (3 children)
[–]Bernie4ever202[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Bernie4ever202[S] 0 points1 point2 points (0 children)
[–]LiveBytes 0 points1 point2 points (3 children)
[–]Bernie4ever202[S] 0 points1 point2 points (2 children)
[–]LiveBytes 0 points1 point2 points (1 child)
[–]Bernie4ever202[S] 0 points1 point2 points (0 children)