Program in C++ to convert string Uppercase into Lowercase
#include<iostream> #include<conio.h> using namespace std; char* StrLower(char str[]) { int i; for(i=0;str[i]!='\0';i++) { str[i]=str[i]+32; } return (str); } int main() { char str[20]; cout<<"Enter a string:-"; cin>>str; StrLower(str); cout<<"Lowercase ="<<str; getch(); }
Output:-
Related Programs --
0 Comments