+ 3

I want to find total number vowels present in a string by declaring a vowel string first and then by comparing two string .

I want to declare a string containing all the vowels . Then I declare any preferred string. By comparing this two string , how can I find the number of vowels in the preferred string in C programming ?

8th Jun 2019, 2:41 PM
SOHAN SARKAR
SOHAN SARKAR - avatar
6 ответов
+ 1
I dont know C, but the logic should work in both languages https://code.sololearn.com/c3UgYFOpBtf3/?ref=app
8th Jun 2019, 3:42 PM
Trigger
Trigger - avatar
+ 1
No problem, Im happy to explain😉 The functional part of the program contains: - a list containing the vowels - an integer containing the amount of vowels - a for loop. Here is the for loop pseudocode for each value in string: if value is also in vowels (list): vowel_count increases with 1 Print the amount of vowels
8th Jun 2019, 3:54 PM
Trigger
Trigger - avatar
+ 1
No problem😁
8th Jun 2019, 4:03 PM
Trigger
Trigger - avatar
0
Sorry sir , I am basically a beginner so it's quite difficult to understand the logic of your code . But thanks for replying
8th Jun 2019, 3:48 PM
SOHAN SARKAR
SOHAN SARKAR - avatar
0
Thank you sir
8th Jun 2019, 3:57 PM
SOHAN SARKAR
SOHAN SARKAR - avatar
0
Thanks sir but I have done the program of printing vowel by two different methods 1. Using switch case 2. Normal methods and now I am trying to do that particular in a different method.
8th Jun 2019, 4:35 PM
SOHAN SARKAR
SOHAN SARKAR - avatar