sysy-data/functional_c/sy/44_stmt_expr.sy

15 lines
158 B
Plaintext

#include "sylib.h"
int k;
#define 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;
}