Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program to FIND VOWELS AND REMOVE VOWELS
void main()
{
char s[100],s1[100];
int i,j,k=0;
clrscr();
printf("ENTER ANY STRING: ");
gets(s);
for(i=0;s[i]!='\0';i++)
if(s[i]=='a' || s[i]=='e' || s[i]=='i' || s[i]=='o' || s[i]=='u' || s[i]=='A' || s[i]=='E' || s[i]=='I' || s[i]=='O' || s[i]=='U')
k++;
printf("\nTHE VOWELS ARE: %c",s[i]);
j=i;
do{
s[j]=s[j+1];
j++;
}while(s[j]!='\0');
}
printf("\nTHE TOTAL VOWELS ARE: %d",k);
printf("\nAFTER REMOVING THE VOWELS,THE NEW STRING IS: %s",s);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH MENGAR
THE VOWELS ARE: A
THE VOWELS ARE: E
TOTAL NO OF VOWELS ARE : 4
AFTER REMOVING THE VOWELS, THE NEW STRING IS : KMLSH MNGR
Recursive Functions Recursion is a process by which a function includes itself with a condition for its safe exit. It is best suitable for a recursive problem. A typical exampl
Asks the user for an integer. if the number is less than 21, ask them for a number again; repeat this until you get a number bigger than 20. 20 is not an acceptable number. Once yo
1.1 A Few Notes: 1. Please test your program with various inputs prior to submission. 2. All group members must understand the entire project for interactive grading. Equal
when a class is defined the compiler will not allocate memory. This is true only for data member not for member function. As soon as the member function is defined the require
Aim: To implement a program to add two complex numbers using constructors. Code: class complex { int real; int img;
Buddy systems : A method of handling the storage management problem is kept individual free lists for blocks of dissimilar sizes. Every list having free blocks of only one particul
In rPeANUt implement the "char getchar()" and "void printstring(char *str)" functions. Using these functions implement the following: void main() { while (1) { ch
C++ Help
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
to find the area under the curve y = f(x) between x = a and x = b
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd