Yeah why not you can have with no need of knowing rocket engineering.
public static void main(String[] args)
{
int a,b,c //to prove symetic property of mathem(a>b and b>c mean a>c)
if(a>b)
{
if(b>c)
{
System.out.println("Its Symmetric propertry of mathematics proves a>c");
}
else
{
System.out.println("Its not Symmetric property of mathemtics");
}
}
}
You can make above programme with any other side logic but i just wana show an example of nested if
statements and this pop up to my mind.
No comments:
Post a Comment