//To Read and Display the word
//Read Char from KB until $ is given and convert Upper case letters to Lower Case
#include<stdio.h>
main()
{
	int i;
	char a[100],b[100];
	clrscr();
	printf("enter the input\n");
	i=0;
	scanf("%c",&a[i]);
	while(a[i]!='$')
	{
		i++;
		scanf("%c",&a[i]);
	}
	printf("lOWER PRINT OUT\n");
	a[i]='\0';
	i=0;
	while(a[i]!='\0')      		//Upper to Lower Conversion
	{
		if (a[i]>=65 && a[i]<=90)
			a[i]=a[i]+32;
		i++;
	}
	a[i]='\0';      //Lower Case Print Loop
	i=0;
	while(a[i]!='\0')
	{
		printf("%c",a[i]);
		i++;
	}

	getch();
}
//	Exercise 1: Convert Lower To Upper using array