diff --git a/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp index 26d788c..65e7ad4 100644 --- a/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp @@ -1,17 +1,18 @@ #include #include +#include -void main() { - - SetConsoleCP(1251); - SetConsoleOutputCP(1251); - - printf("Салюков\n"); - printf("Арсений\n"); - printf("Михайлович\n"); - printf("\n"); - printf("ПИбд-13\n"); - printf("Дата 13.09.24\n"); - printf("\n"); +int main() { + int i, n, d; + int step; + step = 5; + i = 2; + n = 0; + while (n < step) { + d = pow(i, n); + printf("%d\n", d); + n++; + } + return 0; } \ No newline at end of file