/******************************************************************
 ** This program illustrates the SWITCH statement and provies    **
 ** a menu of choice.                                            **
 ******************************************************************/
#include <stdio.h>


main()
{
   int       ch = 1;


  while (ch  != 0)
  {
      fflush(stdin);
      printf("\n\n\t\t Welcome to ZebraSoft Menu\n\n");
      printf("\t PLEASE ENTER ONE OF THE CHOICES,");
      printf(" BY PRESSING ONE NUMBER\n");
      puts("\n\t ENTER 0 TO EXIT");
      puts("   0    EXIT");
      puts("   1    BEEPING SOUND");
      puts("   2    WELCOME MESSAGE");
      puts("   3    CLEAR SCREEN");
      puts("   4    DRAW HORIZONTAL LINE");
      puts("   5    DEFAULT MESSAGE");
      printf("\n\n\t ENTER A NUMBER THEN PRESS RETURN ===>   ");
      scanf("%d", &ch);
      switch (ch)
      {
		case 0 :
	       printf("\n\n \t\t\tGOOD BYE \n\n");
	       break;

		case 1  :
	       printf("\n\n\t\t WELCOME\t\t WELCOME\t\t WELCOME\n\n");
		case 2 :
	       printf("\a \a\a\a");
	       break;
		case 3  :
	       system("cls");
	       break;
		case 4  :
	       system("cls");
	       puts("\n\n\n\n\n\n\n");
	       printf("\n\t\t____________________________________\n");
	       break;
		default   :
	       system("cls");
	       puts("\n\n\n\n\n");
	       printf("\n\n\t\t\tDEFAULT CHOICE IS HERE\n\n");
       }                     /* end of switch statement */
     fflush(stdin);
     printf("\n\n\n\t\t\t press any key to continue ====> ");
     getchar();

    }       /* while */
   return (0);
}
