Predict the output
class Main
{
public static void main(String s[])
{
boolean male = false;
int age = 30;
if( male )
if( age < 20 )
System.out.println("Boy");
else
System.out.println("Man");
else
if( age < 20 )
System.out.println("Girl");
else
System.out.println("Woman");
}
}
Answers
Answered by
4
Answer:
Output :-
Woman
Mark it as brainliest.
Similar questions