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




cpp tutorials
cpp tutorials

Here we will learn c++ program in order 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;
}

 

 


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com





1 Comment

Leave a Reply

Your email address will not be published.


*