source file name: lwruprstr.C
#include<string.h>
void main()
{
char str1[20],str2[20];
clrscr();
printf("enter first string: ");
gets(str1);
printf("enter second string: ");
gets(str2);
printf(" \n converted Lower case string is: %s", strlwr(str1));
printf(" \n converted Upper case string is: %s", strupr(str2));
getch();
}
output:
0 Comments
Post a Comment