Given a string str consisting of alphabets, the task is to check whether the given string is starting with a Vowel or Not.
Input: str = "Animal" Output: Accepted Input: str = "GeeksforGeeks" Output: Not Accepted
- Find the first character of the string
- Check if the first character of the string is a vowel or not
- If yes, print Accepted
- Else print Not Accepted
Below is the implementation of the above approach:
Accepted Not Accepted
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Program to accept String starting with Capital letter
- Substrings starting with vowel and ending with consonants and vice versa
- Program to accept a Strings which contains all the Vowels
- Program to build a DFA to accept strings that start and end with same character
- Count of N size strings consisting of at least one vowel and one consonant
- Count pair of strings whose concatenation has every vowel
- NFA to accept strings that has atleast one character occurring in a multiple of 3
- Build a DFA to accept Binary strings that starts or ends with "01"
- Program to build a DFA that accepts strings starting and ending with different character
- Program to find if a character is vowel or Consonant
- Python program to check if given string is vowel Palindrome
- Alternate vowel and consonant string
- Print all Subsequences of String which Start with Vowel and End with Consonant.
- Lexicographically first alternate vowel and consonant string
- Arrangement of words without changing the relative position of vowel and consonants
- Count of adjacent Vowel Consonant Pairs
- Check if the given string is vowel prime
- Replace every vowels with lexicographically next vowel in a String
- Minimize cost to replace all the vowels of a given String by a single vowel
- Put spaces between words starting with capital letters
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.