Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

if else statement

int age = 30;

if(age >= 30 && age <= 80){
	System.out.println("Old");
    
}else if(age < 30 && >= 1){
	System.out.println("Young");
    
}else{
	System.out.println("Not Supported");
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #statement
ADD COMMENT
Topic
Name
1+2 =