/* To read a char from KB until $ and Check the given char is upper or lower or digit*/
/* Count the number of Upper and Lower Char */
#include
#include
main()
{
	char in;
	int upper_count=0,lower_count=0;
	clrscr();
	printf("enter the Char\n");
	scanf("%c",&in);
	while(in!='$')
	{
		if(in>=65 && in <=90)
		{
			printf("The given char is UPPER\n");
			upper_count=upper_count+1;
		}
		else if (in>=97 && in <=122)
		{
			printf("The given char is LOEWER\n");
			lower_count=lower_count+1;
		}
		scanf("%c",&in);
	}
		printf("Number of UPPER char = %d\n",upper_count);
		printf("Number of LOWER char = %d",lower_count);

	getch();
}