Commit d1c8d1b
committed
feat: Identify vowels and consonants using switch-case for lowercase input
🧠 Logic:
- Takes a lowercase English character as input.
- Uses a `switch-case` to check if the character is one of the vowels: 'a', 'e', 'i', 'o', or 'u'.
- If matched, prints "Vowel".
- Otherwise, defaults to printing "Consonant".
Signed-off-by: Somesh diwan <[email protected]>1 parent 542ee01 commit d1c8d1b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
0 commit comments