बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

accept word convert it into lowercase and display new word replacing only vowels the character following it

accept word convert it into lowercase and display new word replacing only vowels the character following it


#include"stdio.h"
#include"conio.h"
#include"ctype.h"
void main()
{
char ch1[20],ch[20];
int i;
clrscr();
printf("Enter any string=");
gets(ch1);
for(i=0;i"ch1[i]!='\0';i++)
{
if(isupper(ch1[i]))
{
ch[i]=tolower(ch1[i]);
}
else
{
ch[i]=ch1[i];
}

}
printf("\n\nLowercase string is=%s",ch);
printf("\n\nAfter removing vowels and replace following it=\n\n");
for(i=0;ch[i]!='\0';i++)
{
if(ch[i]=='a')
{
printf("%c",'b');
}
else if(ch[i]=='e')
{
printf("%c",'f');
}
else if(ch[i]=='i')
{
printf("%c",'j');
}
else if(ch[i]=='o')
{
printf("%c",'p');
}
else if(ch[i]=='u')
{
printf("%c",'v');
}
else
{
printf("%c",ch[i]);
}
}
getch();
}

accept word convert it into lowercase and display new word replacing only vowels the character following it

C Program example List