/* Using Combined Method in Switch Statement
	To read a char from KB and Check is it vowel or Arithmetic Operator */
#include "stdio.h"
#include "conio.h"
main()
{
	char in;
	clrscr();
	printf ("enter the Character\n");
	scanf("%c",&in);
	switch(in)
	{
		case 'a':case 'e':case 'i':case 'o':case 'u':
		case 'A':case 'E':case 'I':case 'O':case 'U':
			  printf("%c is vowel",in);
			  break;
		case '+':case '-':case '*':case '-':case '%':
			  printf("%c is Arithmetic Operator",in);
			  break;

		default:
			printf("%c is not a Valid Char
			",in);
	}
	getch();
}

/*
	Note: We can do the above program by the following way
	      In program we can compare both upper and lower case letters
	      case 'a':
	      case 'A':
			printf("%c is Vowel",in);
			break;

	Exercise:
	   1. To read a char from KB and Check is it arithmetic operator or not
*/