Feed Headline Animator

WAP to read a sentence and print all lower case to upper case and upper case to lower case.

Main()
{
char s[32];
int I,l;
printf(“Enter Sentence\n”);
gets( s);
l=strlen( s);
for(i=0 ;i<= l;i++)
{
if (( s[i]>=’a’ && (s[i]<=’z’)
s[i]- =32;
s[i]+=32;
}
puts(s);
}


Posted by: Wasim Javed

No comments:

Post a Comment