If the ages of ram, shyam and ajay are input through the keyboard, write a program to determine the youngest of the three. use nested switch statement
Answers
Answered by
1
public class youngest
{
public static void main ( int r,int a, int s )
{
if ( a
Similar questions
public class choice
{
public static void main (int r,int s,int a)
{
switch (ch)
{
case 1:
if (r< a &&r <s)Sopln ("ran is the youngest ");
break;
case 2:
if (s Sopln ("shyam is the youngest ");
break;
case 3:
if (a Sopln("ajay is the youngest");
break;
default:
Sopln ("wrong choice");
}
}
}