C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Task:
Write a program that takes in a string as input, counts and outputs the number of vowels (A, E, I, O, U).
Input Format:
A string (letters can be both uppercase or lower case).
Output Format:
A number which represents the total number of vowels in the string.
Sample Input:
ķķķķ,,.,,,,,,,,,,,,,,k,,,,,,jj,,,lllllllll is a sentence
Sample Ou uktput:ķlk !ììì ííí
6
*/
#include <stdio.h>
#include <string.h>
int main() {
int vowels = 0;
int i = 0;
//char vowelslist[10]={'A','a','E','e','I','i','O','o','U','u'};
char vowelslist[10]="aeiouAEIOU";
char inputstring[100];
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run