Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int kletka(int ameba, int time)
- {
- if (time < 24)
- {
- ameba *= 2;
- time += 3;
- printf_s("Через %d ч. будет %d клеток\n", time, ameba);
- kletka(ameba, time);
- }
- else
- return 0;
- }
- int main()
- {
- system("chcp 1251");
- int ameba = 1;
- int time = 0;
- kletka(ameba,time);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement