#include <stdio.h> int main() { char z[ 9 ]; printf( "Enter a string: " ); scanf( "%[^aeiou]", z ); printf( "The input was \"%s\"\n", z ); return 0; }
Enter a string: string The input was "str"