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

Write a program to find length of string and show it in upper, lower and reverse order 

#include <stdio.h>
#include <conio.h>

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


Post a Comment