void draw(char signal, int length){
int i = 0;
for(i = 0 ; i < length ; i++)
printf("%c", signal);
}
void drawRectangle(int width, int height){
int i, j;
char signal = '*';
for(i = 0 ; i < height ; i++){
if(i == 0 || i == height -1){
draw(signal, width);
printf("\n");
}
else {
for(j = 0 ; j < width ; j++){
if(j == 0 || j == width - 1)
signal = '*';
else
signal = ' ';
draw(signal, 1);
}
printf("\n");
}
}
}