YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS
"TOO" => two 'O' => count++ "TO" => one 'O' => doesn't count "BIRDIE" => two 'I' => count++
int main() { char* str = "YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS"; int vowels[] = {0, 0, 0, 0, 0}; int count = 0;
for(int n = 0; n = 2) { count++; break; } }
memset(vowels, 0, sizeof vowels); } }
printf("%d\n", count);
return EXIT_SUCCESS; }
Adam Johnson
you stupid retard, we aren't going to do your cs homework.
for (int i = 0; i < 100; i++) { if (i % 3 && i % 5) { printf("%d\n", i); continue; } if (!(i % 3)) printf("Fizz"); if (!(i % 5)) printf("Buzz"); putchar('\n'); }
Brayden King
BIRDMIN NO
Angel Flores
var vStr = "QUICK YOU HAVE TEN SECONDS TO WRITE A FUNCTION IN YOUR FAVORITE PROGRAMMING LANGUAGE THAT COUNTS THE NUMBER OF WORDS IN A GIVEN STRING WITH TWO OR MORE EQUAL VOWELS";