2dix-The Student Choice
Log in Register now

C++ Program to CONVERSION FROM UPPERCASE TO LOWER CASE

Write a Program to CONVERSION FROM UPPERCASE TO LOWER CASE

#include<iostream.h> 
#include<conio.h> 

void main()
{
char str[20];
int i;
clrscr();
printf("Enter any string->");
scanf("%s",str);
printf("The string is->%s",str);
for(i=0;i<=strlen(str);i++)
{
if(str[i]>=65&&str[i]<=90)
str[i]=str[i]+32;
}
printf("\nThe string in uppercase is->%s",str);
getch();
}



Note:
      If you want to change in this program please write through the comment on this page. you can also past similar program 
                 of c++ with output.your comment is valuable to the other user and person.

comments (1)

avatar