18 lines
208 B
C++
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;
|
|
} |