HEY THIS QUESTION IS BASED ON JAVA IF ELSE LADDER PLEASE SEND ME THE COMPILED JAVA PROGRAM AS SOON AS POSSIBLE
Attachments:
Answers
Answered by
0
//Java Program to demonstate the use of if statement.
public class IfExample {
public static void main(String[] args) {
//defining an 'age' variable
int age=20;
//checking the age
if(age>18){
System.out.print("Age is greater than 18");
}
}
}
Similar questions
Science,
4 months ago
Math,
4 months ago
Social Sciences,
9 months ago
Social Sciences,
9 months ago
Computer Science,
1 year ago
Science,
1 year ago