Question: Question 0 String check ( 2 0 points ) Given a string, write a code to count the number of vowels and consonants in the

Question0 String check
(20 points)
Given a string, write a code to count the number of vowels and consonants in the string using a loop.
Test your code for these cases:
a)" Hello, this is a sample string with vowels and consonants."
b) 'How many vowels and consonants in this sentence?'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!