//-----------------------------------------------------------------------------
// asci_table.c
//
// program will generate the representation of
// characters based on ASCI Table
//
// group: group 1,13 study assistant AltiHar
//
// author: Altinger Harald 0630xxx
//
// last change: created all (Altinger Harald)
//-----------------------------------------------------------------------------
//

#include <stdio.h>

//----------------------------------------------------------------------------- 
/// printBorder()
///
/// this function will print the seperating line between the lines
// 
void printBorder()
{
  int count_rows;
  int count_lines;
  for(count_rows = 0; count_rows < 17; count_rows++)
  {
    printf("----");
  }
  printf("-\n");
}

//----------------------------------------------------------------------------- 
/// 
/// main function to controll the program flow
/// 
/// @return int  always zero 
// 
int main()
{
  int count_rows;
  int count_lines;
  //int count = 0;
  //int count2 = 0;  
  
  for (count_lines = 0; count_lines < 17; count_lines++)
  {
    for(count_rows = 0; count_rows < 17; count_rows++)
    {
      printf("| %c ",count_rows + 16*count_lines);
    }
    printf("|\n");
  //extracted into function  
  //for(count_rows = 0; count_rows < 17; count_rows++)
  //{
  //  printf("----");
  //}
  //printf("-\n");
    printBorder();
  }
  
  return 0;
}


