Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Check if a character is a vowel or consonant

Easy

Problem Statement

Check if a character is a vowel or consonant

Sample Input

e

Sample Output

e is a vowel

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val char = 'e' // Add your code here to check if the character is a vowel or consonant }
Log in or sign up to run or submit your code.Log inSign up
Input
e
Expected Output
e is a vowel