public class HackDefence{
public static void main(String[]args){
int x,y;
x=49;
y=28;
/* And(&&) operator wants all the conditions to be satisfied */
if(x>20 && y<40){
System.out.println("Successful");
}else{
System.out.println("Failure");
}
}
OUTPUT:
No comments:
Post a Comment