Showing posts with label lower and reverse order. Show all posts
Showing posts with label lower and reverse order. 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