6laba11/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp
2024-11-21 07:40:35 +03:00

18 lines
208 B
C++

#include <stdio.h>
#include <Windows.h>
#include <math.h>
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;
}