/* June 18, 1998 */
/* program to create a table showing the various lumber measurements */
/* function prototype */
void display_header();
main ()
{
/* declarations */
double base;
double height;
double area;
double inertia;
double modulus;
int i;
int j;
/* display header */
display_header();
for (i = 2; i <= 10; i = i + 2)
{
for (j = 2; j <= 12; j = j + 2)
printf("%2d X %2d %8.2d %14.2d %10.2d\n", i,j,
(i*j), ((i*j*j*j)/12), ((i*j*j)/6));
printf("");
}
}
void
display_header()
{
printf("Lumber Cross-sectional Moment of Section\n");
printf("Size Area Inertia Modulus\n\n");
}
               (
geocities.com/yosemite/rapids)                   (
geocities.com/yosemite)