Skip to content

Instantly share code, notes, and snippets.

@sampletext32
Created April 19, 2020 18:57
Show Gist options
  • Save sampletext32/e73d298f2c0d1f095b150dec7882b217 to your computer and use it in GitHub Desktop.
Save sampletext32/e73d298f2c0d1f095b150dec7882b217 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "russian");
cout << "Моисеева Н УТН - 112\n";
cout << "Индивидуальное задание 5\n";
int count = 1;
int hours = 0;
while (hours <= 48)
{
cout << "День " << hours / 24 << ", час " << hours % 24 << ", амёб: " << count << "\n";
hours += 3;
count *= 2;
}
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment