// program 6.2

#include <stdio.h>
#define	BLOCK "*"


void PrintBlock(int H1, int W1, char *C1, int W2, char *C2, int W3, char *C3)
	{
	int	r,c;
	
	for  (r = 1; r <= H1; r++)
		{
		for (c = 1; c <= W1; c++)
			printf(C1);
		for (c = 1; c <= W2; c++)
			printf(C2);
		for (c = 1; c <= W3; c++)
			printf(C3);
		printf("\n");
		}
	}


int main( void ) 
	{
	PrintBlock(3,40,"*",0," ",0," ");
	PrintBlock(6,10,"*",20," ",10,"*");
	PrintBlock(3,40,"*",0," ",0," ");
	return 0;
	}

