0% found this document useful (0 votes)
63 views1 page

Pseudocode Starts Here

This pseudocode counts the number of vowels in a string of words entered by the user. It declares variables to store the input words and vowel count, uses a for loop to iterate through each word and check if it contains a vowel, and increments the counter if so. It finally displays the total vowel count.

Uploaded by

ifzae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views1 page

Pseudocode Starts Here

This pseudocode counts the number of vowels in a string of words entered by the user. It declares variables to store the input words and vowel count, uses a for loop to iterate through each word and check if it contains a vowel, and increments the counter if so. It finally displays the total vowel count.

Uploaded by

ifzae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

--------------- Pseudocode starts here ----------------------

Step 1: Start
Step 2: Declare string[] Words
Step 2: Display "Enter words"
Input Words
Step 3:
Declare VowelCount
Set VowelCount=0
Step 4:
For i = 0 To Words.length - 1
if words="a" or words="e" or words="i" or words="o" or words="u" or words="A" or words="E" or
words="I" or words="O" or words="U"
Set VowelCount=VowelCount+1
EndIf
Next

Step 5:
Display "Number of Vowels in words are:" & VowelCount

Step 6: Stop.

--------------- Pseudocode Ends here ----------------------

You might also like