Created
April 19, 2020 18:57
-
-
Save sampletext32/e73d298f2c0d1f095b150dec7882b217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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