This slightly more ornate example adds up the elements of an array: sum = 0; for( i=0; i