+ 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 ?
6 ответов
+ 1
I dont know C, but the logic should work in both languages
https://code.sololearn.com/c3UgYFOpBtf3/?ref=app
+ 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
+ 1
No problem😁
0
Sorry sir , I am basically a beginner so it's quite difficult to understand the logic of your code . But thanks for replying
0
Thank you sir
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.