    #include <stdio.h>
    void line(char s, int w, char b, char e)
    {
    	               { putchar(s);    }
    	while(w --> 0) { putchar(b);    }
                       { putchar(e);    }
                       { putchar('\n'); }
    }
    
    int main(void) {
    	int width  = 10;
    	int height =  6;
    	    width -=  2;
            height-=  2;
                            { line('+', width, '-', '+'); }
    	while(height --> 0)	{ line('|', width, ' ', '|'); }
                            { line('+', width, '-', '+'); }
    	return 0;
    }