What will be the output of the following code:
if(st==’E’ || st==’A’ || st==’I’ || st==’O’ || st==’U’)
System.out.println(“An uppercase vowel”);
else if(st==’e’ || st==’a’ || st==’i’ || st==’o’ || st==’u’)
System.out.println(“An lowercase vowel”);
else if(st>=’a’ && st<=’z’)
System.out.println(“A lowercase consonant”);
else
System.out.println(“An lowercase consonant”);
What will be the output of the above code, if value of st is character literal as:
i. ‘E’ ii. ‘x’ iii. ‘i’ iv. ‘M’
Answers
Answered by
1
Answer:
you may use python 3.2 or 3.3 for the answer
Similar questions
Math,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Economy,
8 months ago
Social Sciences,
8 months ago
Math,
11 months ago
Physics,
11 months ago
Physics,
11 months ago