compress.c 421 Bytes
#include <stdio.h>
//This program gets a string from the user, removes the space characters as
// well as vowels and prints the compressed string.
int main() {
char current;
printf("String: ");
while ((current=getchar()) != '\n') {
if (current!='a' && current!='e' && current!='i'
&& current!='o' && current!= 'u'
&& current!= ' ' && current != '\t')
putchar(current);
}
putchar('\n');
return 0;
}