// filename:c2011-6-8-6-2-ex.c
// original examples and/or notes:
// 		(c) ISO/IEC JTC1 SC22 WG14 N1570, April 12, 2011
// 			C2011 6.8.6.2 The continue statement
// compile and output mechanism:
// 		(c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp, December.xx, 2013
// compile errors and/or wornings:
// 		(c) Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
// 			Target: x86_64-apple-darwin11.4.2 //Thread model: posix
// 		(c) LLVM 2003-2009 University of Illinois at Urbana-Champaign.
#include <stdio.h>

int main(void)
{
int i=0, MAX=100;
// Semantics
	while (i++,i<MAX/* ... */) {
/* ... */
continue;//goto contin;.
/* ... */
contin: ;
	}
printf("%d ",i),i=0;
do {
/* ... */
continue;//goto contin1;.
/* ... */
contin1:i++ ;
	} while (i++,i<MAX/* ... */);
printf("%d ",i),i=0;
for (i=0;i<MAX;i++/* ... */) {
/* ... */
continue;//goto contin2;.
/* ... */
contin2: ;
}	
return printf("6.8.6.2 The continue statement %d\n",i);	
}
// output may be
// 100 100 6.8.6.2 The continue statement 100