Hindi, asked by amarjyotidu, 2 months ago

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 UnKn0wN12114
0

Answer:

You Didn't Add In put!

Please Add In put in Your Cod e!

Thanks!

Similar questions