SHOW:
|
|
- or go back to the newest paste.
1 | #include <stdio.h> | |
2 | ||
3 | - | double power(double n) |
3 | + | long long power(int n) |
4 | { | |
5 | int q; | |
6 | - | double c=2; |
6 | + | long long c=2; |
7 | for (q=n; q>1; q--) {c=2*c;} | |
8 | return c; | |
9 | } | |
10 | ||
11 | int main() | |
12 | { | |
13 | - | double n, output; |
13 | + | int n; |
14 | - | scanf("%lf",&n); |
14 | + | long long output; |
15 | scanf("%i",&n); | |
16 | - | printf("%lf",output); |
16 | + | |
17 | printf("%lld",output); | |
18 | return 0; | |
19 | } |