0:00
Hey guys in this video. I'm coding a vowel checker app in three different languages, so let's get right into it
0:06
I'm adding header files using namespace and now we're creating our main function and
0:12
I'm declaring two variables now Let's take input from the user that would be an alphabet
0:21
You know I want to convert that alphabet to lowercase so that I don't have to write a separate
0:31
condition for capital letters So now let's check that alphabet whether that's a vowel or a consonant, so I'm using if statement here
0:45
And also getting help from Those logical operator that logical operator you can call it or operator that straight two bars
0:55
is known as a An or operator, so we're printing that message you're entered a vowel if it doesn't match with that if the conditions fall
1:04
It will print out you enter consonant So let me import these
1:13
libraries and I'm gonna create my class as well checker We're defining remain function
1:24
And now I'm declaring two variables Let's take the input from the user and our character
1:33
And then I'm storing that alphabet in ch variable So now let's convert that into lowercase
1:46
And now we're checking that if that's a vowel or if that's a
1:54
Consonant so Same as this C++ We're using our logical operator using if statement the same things for if statement is almost
2:04
Same and now we're printing that message And same goes for inside of else statement you enter a consonant
2:12
So that is it and now we're you know, we're waiting for the user to enter a character
2:22
So let's take input from the user user has to enter an alphabet and then store that in chart variable and then you know have to
2:33
convert that into lower lowercase and Simply using an if statement would do the trick so we can also use or operator in Python
2:45
but we simply type it is or That's it I just enter all the vowels and then if that's a vowel so print that
2:59
Otherwise print that you enter a consonant. That's all. Thank you guys for watching