Showing posts with label Length of string and show it in upper. Show all posts
Showing posts with label Length of string and show it in upper. Show all posts

UPPER, LOWER AND REVERSE

WAP to find length of string and show it in upper, lower and reverse order

void main ()

{

char str [20];

clrscr ();

printf ("Enter your name: ");

gets (str);

printf("\nLength is : %d",strlen(str));

printf("\nUpper is : %s",strupr(str));

printf("\nLower is : %s",strlwr(str));

printf("\nReverese is : %s",strrev(str));

getch ();

}



Labels