public class ifelse{
public static void main(String[] args)
{
boolean as=true;
if(as)
{
System.out.println("yes,u did it");
}
else
{
System.out.println("yes,u did it 222");
}
int a=27;
if(a>=33)
System.out.println( "the no: is"+a+"greater than 33");
else
System.out.println("the no: is"+a+"less than 33");
}
}
public static void main(String[] args)
{
boolean as=true;
if(as)
{
System.out.println("yes,u did it");
}
else
{
System.out.println("yes,u did it 222");
}
int a=27;
if(a>=33)
System.out.println( "the no: is"+a+"greater than 33");
else
System.out.println("the no: is"+a+"less than 33");
}
}
No comments:
Post a Comment