/* This is a more complex example of using while 
   and for loops. It should write values 0, 10,
   210, 3210, 43210, 543210, 00.
*/


int null,change,help;              /* Declaration */

void main() {
 
 null=0;			   /* Initialization */ 
 help=null;
 change=null;
 
  while (change<=5) {              /* Main loop */
    printf(change);
      help=change;
      while(help>0) {		   /* Nested loop */		
	help=help-1;
	printf(help);
      }
    change=change+1;  
  }
 
 for(help=1;help<=2;help=help+1)     	   /* 2x 00 */
  printf(null);
 
}