public static void main(String arg[])
{
int age = 35;
char gender = 'F'; // M - Male, F - Female
System.out.println("Hello ");
if( age > 35 ) // outer if
{
if( gender == 'M' ) // LINE A
{
System.out.println("Man");
}
else
{
System.out.println("Woman");
}
}
else
{
if( gender == 'M' ) // LINE B
{
System.out.println("Boy");
}
else
{
System.out.println("Girl");
}
Answers
Answered by
0
Answer:
You Didn't Add In put!
Please Add In put in Your Cod e!
Thanks!
Similar questions
Math,
1 month ago
Environmental Sciences,
1 month ago
English,
2 months ago
Math,
2 months ago
Math,
9 months ago