write a program to accept a word and convert it into lowercase if it is in uppercase and display the new word by replacing only the mobile with the character following it
chidu07:
c++ program??
Answers
Answered by
0
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
void main()
{
char ch[20]
cout<<"Enter the Word":
gets(ch);
for(int i=0;ch(i)!='\0';i++)
{
if(isupper(ch)==0)
ch[i]=tolower(ch)
}
cout<<"New Word:";
puts(ch);
getch();
}
Similar questions
Social Sciences,
7 months ago
English,
7 months ago
English,
1 year ago
Business Studies,
1 year ago
Math,
1 year ago