R
R
Ruslan Tilyaev2020-12-01 16:54:57
C++ / C#
Ruslan Tilyaev, 2020-12-01 16:54:57

How is the problem solved?

50 tons of crabs are caught annually. Reproduction is 30 tons per year. It is known that in 2013 there were 4,500 tons of crab in stocks. Display inventory statistics for each year until the moment when it falls below 50 tons.

I have basic c++ skills. But I did not understand this task at all! I look forward to your help, at least an explanation of the task)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2020-12-01
@Heckfy325

You go through the cycle by years, starting from 2013. In the cycle:
1. subtract 50 tons caught this year from the current reserves. 2.
add 30 tons of reproduction this year to the current reserves . 50 tons, then you complete the cycle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question