aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_loop.in
blob: 83721d175ecdd8c15aa241456348e82f57e9addb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
int main() {
  int x = 5;
  for (int i = 0; i < 6; i++) {
    x += x * i;
    if (x > 1000) {
      if (x % 7 == 0) printf("cheez\n");
      x /= 2;
      break;
    }
  }
  printf("*%d*\n", x);
  return 0;
}