<!-- hamlet
<!-- copytar
examples/                                                                                           0040755 0002611 0000666 00000000000 06355553266 0013545 5                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        examples/marray1.c                                                                                  0100644 0002611 0000666 00000001066 06355553264 0015263 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 3 */
#include <stdio.h>

void main() {
 
  int row;
  int col;
  char table[9][9];

  /* initialize multiplication table */

  for (row = 0; row < 9; row++)
    {
      for (col = 0; col < 9; col++)
	{
	  table[row][col] = (row + 1) * (col + 1);
	}
    }
  /* print multiplication table */

  printf("    1  2  3  4  5  6  7  8  9\n");
  printf("  +--------------------------\n");

  for (row = 0; row < 9; row++)
    {
      printf("%2d|", row + 1);
      for (col = 0; col < 9; col++)
	{
	  printf("%2d ", table[row][col]);
	}
      printf("\n");
    }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          examples/marray2.c                                                                                  0100644 0002611 0000666 00000002244 06355553264 0015263 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 3 */
#include <stdio.h>


/* A function to print a two-dimensional arithmetic table. */

void print_table(char table[9][9], char operation) {

  int row;
  int col;

  /* print mathematical table */
  printf(" %c  1  2  3  4  5  6  7  8  9\n", operation);
  printf("  +--------------------------\n");
  for (row = 0; row < 9; row++)
    {
      printf("%2d|", row + 1);
      for (col = 0; col < 9; col++)
	{
	  printf("%2d ", table[row][col]);
	}
      printf("\n");
    }
  printf("\n");
}


void main() {
 
  int row;
  int col;
  char tables[3][9][9];

  /* initialize addition table */
  for (row = 0; row < 9; row++)
    {
      for (col = 0; col < 9; col++)
	{
	  tables[0][row][col] = row + col + 2;
	}
    }
  
  /* initialize subtraction table */
  for (row = 0; row < 9; row++)
    {
      for (col = 0; col < 9; col++)
	{
	  tables[1][row][col] = row - col;
	}
    }
  
  /* initialize multiplication table */
  for (row = 0; row < 9; row++)
    {
      for (col = 0; col < 9; col++)
	{
	  tables[2][row][col] = (row + 1) * (col + 1);
	}
    }
  
  /* print the tables */
  print_table(tables[0], '+');
  print_table(tables[1], '-');
  print_table(tables[2], '*');
}
                                                                                                                                                                                                                                                                                                                                                            examples/marray3.c                                                                                  0100644 0002611 0000666 00000001346 06355553264 0015266 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 3 */
/* Used for checkoff of multi-dimensional arrays. 

Created:  Joe Zachary, November 5, 1992
Modified:
*/


#include <stdio.h>


/* This function takes a string as an argument and prints out, on one line,
   every character in the string except for the vowels 'a', 'e', 'i', 'o',
   and 'u'. */

void printNoVowels (char s[]) {

/* YOUR CODE GOES HERE. */

}



/* Reads in five strings and prints them out, with their vowels removed. */

void main () {

  char strings[5][80];

  printf("Please enter five strings with less than 80 characters\n");

/* Read the five strings into the "strings" array. */

/* YOUR CODE GOES HERE. */

/* Use "printNoVowels" to print out each of the five strings. */

/* YOUR CODE GOES HERE. */

}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          