Computer Science, asked by leo281, 4 days ago

Write a program in BASIC to input a string and display the number of vowels in it.
Please answer fast and correctly do not just copy from net

Answers

Answered by gkour807
0

Explanation:

Input : x = 'c'

Output : Consonant

Input : x = 'u'

Output : Vowel

We check whether the given character matches any of the 5 vowels

if (x == 'a' || x == 'e' || x == 'i' ||

x == 'o' || x == 'u' || x == 'A' ||

x == 'E' || x == 'I' || x == 'O' || x == 'U')

cout << "Vowel" << endl;

case 'a':

case 'e':

case 'i':

case 'o':

case 'u':

case 'A':

case 'E':

case 'I':

case 'O':

case 'U':

Answered by mahichugh122379
0

Answer:

it is not from the net

Explanation:

this is the progrm

here are 3 image of the answer not from the net as you told...

I made it like an example

Attachments:
Similar questions