// burton rosenberg // 5 feb, 2004 // we now know loops, we will // look at loop invariants class Factorial { static final int N = 1000 ; public static void main( String [] args ) { int f ; // ASSERT N > 0 (hey this is a precondition) int i ; i = 1 ; f = 1 ; // LOOP INVARIANT: ASSERT f = i! while ( i