Tuesday, August 28, 2007

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 ();

}



No comments:

Post a Comment