Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <stdio.h>
- #include <stdlib.h>
- int is_cons(int c) {
- return isalpha(c) && c != 'A' && c != 'E' && c != 'I' && c != 'O' && c != 'U' && c != 'Y'
- && c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u' && c != 'y';
- }
- int main() {
- int c;
- while(!feof(stdin) && !ferror(stdin) && c != '\n') {
- c = fgetc(stdin);
- if(is_cons(c))
- printf("%co", c);
- printf("%c", c);
- }
- }
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    