Skip to content

Commit d1c8d1b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Section7ConditionalStatements/src/SwitchCodeCC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ public static void main(String[] args) {
2828
System.out.println("Consonant");
2929
}
3030
}
31-
}
31+
}

0 commit comments

Comments
 (0)