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
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Program to accept String starting with Capital letter
- 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
- Substrings starting with vowel and ending with consonants and vice versa
- Program to build a DFA that accepts strings starting and ending with different character
- Count of N size strings consisting of at least one vowel and one consonant
- Build a DFA to accept Binary strings that starts or ends with "01"
- NFA to accept strings that has atleast one character occurring in a multiple of 3
- 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
- Check if the given string is vowel prime
- Program to check if two strings are same or not
- Program to add two binary strings
- Lexicographically first alternate vowel and consonant string
- Count of adjacent Vowel Consonant Pairs
- Replace every vowels with lexicographically next vowel in a String
- A Program to check if strings are rotations of each other or not
- C Program to concatenate two strings without using strcat
- Print all Subsequences of String which Start with Vowel and End with Consonant.
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.