2 #2

Open
endlesssky wants to merge 2 commits from v2 into main

View File

@ -1,17 +1,18 @@
#include <stdio.h> #include <stdio.h>
#include <Windows.h> #include <Windows.h>
#include <math.h>
void main() { int main() {
int i, n, d;
SetConsoleCP(1251); int step;
SetConsoleOutputCP(1251);
printf("Салюков\n");
printf("Арсений\n");
printf("Михайлович\n");
printf("\n");
printf("ПИбд-13\n");
printf("Дата 13.09.24\n");
printf("\n");
step = 5;
i = 2;
n = 0;
while (n < step) {
d = pow(i, n);
printf("%d\n", d);
n++;
}
return 0;
} }