//comment.cpp
#include <stdio.h>
main()	{

   /*
   ** traditional C style block comment
   */
   int i = 0;
   int j = 0;	//end of line C++ comment

   /* the block comment used for end of line commenting presents a problem
   ** if one wants to commant out the following block
   */
   for (i=0;i<10;i++)	{
	printf("hello world:%d\n",i);
   }	/* end for block comment*/

   /* the end of line comment after the for block would not interfere with
   **	one wanting to comment out part or the entire code block
   */
   for (j=0; j<10; j++)	{
	printf("hello world:%d\n",j);
   }	//end for end of line comment
}
/**************** output *******************
hello world:0
hello world:1
hello world:2
hello world:3
hello world:4
hello world:5
hello world:6
hello world:7
hello world:8
hello world:9
hello world:0
hello world:1
hello world:2
hello world:3
hello world:4
hello world:5
hello world:6
hello world:7
hello world:8
hello world:9
*******************************************/
//end comment.cpp

