nipunchamikara / ucsc-codegen-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factorial Function Generator

This Java project generates the bytecode for a factorial function. The generated bytecode is then executed by the JVM.

The factorial function is defined as:

public static int factorial(int n) {
    if (n == 0) {
        return 1;
    } else {
        return n * factorial(n - 1);
    }
}

About


Languages

Language:Java 100.0%