AN SET2 Q1
Problem Statement
You are asked to develop a program in string. You have to perform 2 tasks here:
Find the count of vowels in the input string.
Check if the input string contains all vowels.
Input Format
Get the input string from the user in a line followed by the option number in the next line.
Output Format
For option 1, display the count of vowels in the input string in a line. For option 2, display 1 if all the vowels are present in the input string and display 0 if all vowels are not present in the input string.
Note: Your program should handle strings with spaces also.
Sample Input1
Hello
1
Sample Output1
2
Explanation - for understanding purpose only
The input string contains 2 vowels.
Sample Input2
Hello
2
Sample Output2
0
Explanation - for understanding purpose only
The input string does not contain all the vowels. Hence 0 is displayed.
Comments