rustic-sysy/sysy_sets/44_stmt_expr.sy

14 lines
144 B
Plaintext
Raw Normal View History

2024-08-27 18:13:31 +08:00
int k;
const int n = 10;
int main () {
int i = 0;
k = 1;
while (i <= n - 1) {
i = i + 1;
k + 1;
k = k + k;
}
putint(k);
return k;
}