AnswerBox
C

Count Vowels in String

Description:
Count vowels in a given string.
C Code
#include <stdio.h>
#include <ctype.h>
int main() {
    char str[] = "Programming is Fun";
    int count = 0;
    for (int i = 0; str[i] != 0; i++) {
        char c = tolower(str[i]);
        if(c==97||c==101||c==105||c==111||c==117) count++;
    }
    printf("Vowels: %d\n", count);
    return 0;
}
Expected Output
Vowels: 5