mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
18 lines
189 B
C
18 lines
189 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int n;
|
||
|
|
||
|
scanf("%d", &n);
|
||
|
|
||
|
int a = 1;
|
||
|
|
||
|
for (int i = n; i > 2; i--) {
|
||
|
a = (a + 1) * 2;
|
||
|
}
|
||
|
|
||
|
printf("%d\n", a);
|
||
|
|
||
|
return 0;
|
||
|
}
|