Try this way:
Code:
function main(){
	int i;
	
	for (i = 0;i < 100; i++){
		printf("%i",i);
		if (i >= 10)
		break;
	}
}

or
Code:
function main(){
	int i=0;
	
	for (;;){
		i++;
		printf("%i",i);
		if (i > 10)
		break;
	}
}


Without comparison, works only like second example.

Last edited by rojart; 02/11/11 21:47.

Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P