Could someone help me with a task
So far I maged to find the longest word out of the ten inputs from the user but I can't print the number of vowels in this word specifically. If that makes sense.Do you want us to post C Program to Check whether a Character is Vowel or Consonant OR you want us to help you with finding the word with the most vowels?!!
It is ok i managed to solve it.idk if you managed to solve this but like @where! said, post your code I'd like to learn.
I don't know C but if js and the words are in an array, 1) put vowels in dictionary, and set counter variable, 2) loop through array, 3) find longest in your data set and save on a variable or array, 4) loop through the var or array and just check if each individual letter is in the dictionary, if yes, add to counter, 5) return counter and you should be set.
Do you have to use 2d array or there is other options.last time i did c was in university, but if I remember correctly you'll need to use scanf for taking user input, store it in some array, loop through the array with a for loop and create an if statement to check element in the array for what u want and throw in a counter in there somewhere