C
if_goto
do_while
int r=1, i=1; // combine declarations do { r *= i; i ++; } while (i<=n); return r;
while
int r=1, i=1; while (i<=n) { r *= i; i ++; } return r;