Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 238 Bytes

README.md

File metadata and controls

19 lines (18 loc) · 238 Bytes

3.27

long fact_for_goto(long n) {
    long i = 2;
    long result = 1;
    if (n <= 1) {
        goto done;
    }
loop:
    result = result * i;
    i++;
    if (i <= n) {
        goto loop;
    }
done:
    return result;
}