home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
98.img
/
LCNOW2.ZIP
/
EXAMPLES
/
BANNER.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-05-20
|
499b
|
40 lines
/*
* B A N N E R
*
* Print a message surrounded by a border. Use
* functions to draw the elements of the border.
*/
#include <stdio.h>
#define WIDTH 72
#define ROWS 4
Line()
{
int x;
for (x = 0; x <= WIDTH; ++x)
putchar('*');
putchar('\n');
}
Sides()
{
int y;
for (y = 0; y <= ROWS; ++y)
printf("*\t\t\t\t\t\t\t\t\t*\n");
}
main()
{
Line();
Sides();
printf("*\t\t\t (your ad here)\t\t\t\t*\n");
Sides();
Line();
return 0;
}