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
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