Program to find the length and change the case
#include<string.h>
void main()
{
char a[100];
int length;
clrscr();
printf("Enter a string to calculate it's length\n");
gets(a);
length = strlen(a);
printf("Length of entered string is =
%d\n",length);
printf("%s\n",strlwr(a));
printf("%s\n",strupr(a));
getch();
}
No comments:
Post a Comment