i)'A 'F'
switch(ch)
case 'A
System.out.println("Grade A"):
case 'B':
System.out.println("Grade B");
case 'C:
System.out.println("Grade C");
break;
default:
System.out.println("Grade F*);
what is the ouput of a and f
Answers
Answered by
1
Answer:
Output : Grade A
Grade F
Explanation:
For 'A' , it prints for case 'A' and when the Case doesn't have the match, it prints the default value i.e., Grade F
Mark me as the Brainliest Answer!!
Similar questions