At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.
I want to make a program that will input a word and determine how many vowels or consonants are there in the inputted word. Can you help me make my code?
Private Sub Command1_Click()
Dim a Dim vow, con As Integer vow = 0 con = 0 For i = 1 To Len(Text1) a = Mid(Text1, i, 1) If (a = "a" Or a = "e" Or a = "i" Or a = "o" Or a = "u") Then vow = vow + 1 Else con = con + 1 End If Next
MsgBox "Vowels: " & vow & vbNewLine & "Consonants : " & con
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
I'm also needing a Java program. Please help me asap
I'm also needing a Java program. Please help me asap
×