what is nested if elseplease write a program using nested if else of your choice.
Answers
Answered by
2
Answer:
when we use If else conditions within an if condition it is known as nested if or nested if else.
example program
class test
{
static void main ()
{
int b= 100;
int c= 200; //it's upon your choice
int d=500;
if(b==100)
{
if(c==200)
{
System.out.println("Ok");
}
else
{
System.out.println("No");
}
}
else
System.out.println("Hmm");
}
}
}
plz mark this as BRAINLIEST
Similar questions