#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
                char str[10];
                clrscr();
                cout<<"Enter The String : ";
                cin>>str;
                cout<<"\nThe Lowercase of "<<str<<" : ";
                for(int i=0;i<strlen(str);i++)
                                {
                                if((str[i]>=65) && (str[i]<=90))
                                                {
                                                str[i]=str[i]+32;
                                                }
                                }
                cout<<str;
                getch();
}

137.PNG

Advertisements