Simple examle of JAVA IF ELSE

class Main{
public static void main (String args[]){
    int i=7;
    int j=8;
    if(i==j)
        System.out.println("i and j are equal");
    else
        System.out.println("i and j are not equal");  
    }
}



The Output is Given Below:
i and j are not equal

0 comments:

Post a Comment