Computer Science, asked by anjusharma20th, 2 months ago

8. Write alternative coding using switch
if (S == ‘A’|| S== 'a')
System.out.println("Vowel A");
if (S = = 'E' || S== 'e')
System.out.println("Vowel E”);​

Answers

Answered by IndravoDe
1

Answer:

Hi, I have given 2 snaps of the answer.

I have done it for all the vowels instead of just e and a.... hope you like it

Attachments:
Similar questions