C++ program to convert a string into upper-case or lower-case

Write a C++ program to convert the string from upper case to lower case

# include < iostream>
# include < string>
using namespace std;

int main()
{
char str1 [30], temp[30];
cout < < "Enter the string:";
cin > > str1;
strcpy ( temp, str1);
cout < < "strupr ( temp ) : " < < strupr (temp) < < end1;
cout < < "strlwr (temp) : " < < strlwr ( temp) < < end1;
system("pause");

return 0;
}

 ---------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------




---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

Comments