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 vowel with the character following it
Answers
Answered by
1
#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)
if(ch[i]=="a"||ch[i]=="e"||ch[i]=="i"||ch[i]=="o"||ch[i]=="u")
ch[i]=ch[i]+1;
}
cout<<"New Word:";
puts(ch);
getch();
}
Similar questions