/**************************************************************** * Module name : box.c * * Purpose : prints a rectangle using asterisks * * Created : ??-??-89 * * Last edited : 24-08-89 Version 1.0 * * Copyright : G R Buckeridge * ****************************************************************/ #include stdio.h main() { int x,y; printf("This program prints a rectangle using asterisks\n\n"); printf("Input width (greater than 2) "); scanf(" %d",&x); printf("\n"); printf("Input length (greater than 2) "); scanf(" %d",&y); printf("\n"); box(x,y); } void hor(x) int x; { int i; for (i=0;i