import java.util.*;
public class pesoyedad{
public static void main (String[] args){
int one,two;
String three;
Scanner teclado = new Scanner (System.in);
System.out.print("Edad: ");
one = teclado.nextInt();
System.out.print("Peso: ");
two = teclado.nextInt();
three= prom(one,two);
System.out.println(three);
}
public static String prom (int a,int b){
if (a<=30){
if(b<=55){
return "JOVENYFLACO";
}
else {
return "JOVENYGORDO";
}
}
else {
if(b<=55){
return "VIEJOYFLACO";
}
else {
return "VIEJOYGORDO";
}
}
|