Basics_Que_19

Home / Java Practice Question / Basics_Que_19

Basics_Que_19


If the ages of kapil, Vedant and Lovekush are input through the keyboard, write a program to determine the youngest of the three......


program : 


public class Loop {

public static String youngerOne(int kapil , int vedant ,int lovekush){

if(kapil<vedant && kapil <lovekush){
return "Kapil is Younger !!.....";
}else if(vedant<lovekush){
return "Vedant is Younger !!.....";
}else{
return "Lovekush is Younger !!.....";
}
}

}