1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #include <stdio.h>
#define scan(x) scanf("%lf", &x) #define f(i, a, b) for (int i = a; i <= b; i++) #define pn(x) printf("%.0lf", x) #define IN freopen("in.txt", "r", stdin) #define OUT freopen("out.txt", "w", stdout)
int main() { double x, n,res=1; scan(x); scan(n); f(i,1,n){ res *=(x+1); } pn(res); return 0; }
|