Computer Science, asked by deeptanshuyadav4, 9 months ago

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 harnathyadav2907
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