/* * This is a version of factorial with a print. If you get print working * early, it can be helpful in debugging other EJay constructs. */ int x; void main() { x = fact(4); } int fact(int x) { print "value of x in f: ", x, "\n"; if (x > 0) { return x * fact(x - 1); } else { return 1; } }