Question 1
Consider a program that accepts a word as input from the user and prints the number of vowels in it. You can assume that the input will be given in lower case.
Consider a program that accepts a word as input from the user and prints the number of vowels in it. You can assume that the input will be given in lower case.
Which of these two snippets is correct?
Only snippet-1 is correct
Only snippet-2 is correct
Both snippets 1 and 2 are correct
Both snippets 1 and 2 are incorrect
