#include<iostream.h> #include<conio.h> #include<string.h> void main() { int i,ac,uc,sc; char a[100]; clrscr(); cout<<"\nenter string:"; cin>>a; // ac=dc=sc=0; for(i=0;a[i]!='\0';i++) { if(a[i]>=65&&a[i]<=90) { a[i]+=32; } } cout<<"string is:"<<a; getch(); }
Sunday, 7 December 2014
C++ program to convert a string letters of upper case into lower case
Posted by Madan
Posted on 14:28