class IfStatement {
public static void main(String[] args) {
int number = 10;
// checks if number is less than 0
if (number < 0) {
System.out.println("The number is negative.");
}
System.out.println("Statement outside if block");
}
}
int num = 5;
if (n > 0) {
System.out.println("This is a positive number")
}
if (20 > 18) {
System.out.println("20 is greater than 18");
}