/* * This is an iterative version of factorial. The result should be a value of * 24 in location 0. */ int x; void main() { int i; i = 4; x = 1; while (i > 0) { x = i * x; i = i - 1; } }