HTML & JS
// Java program to illustrate If statement
class GeeksToCode
{
    public static void main(String args[])
    {
        int a = 12;
        if(a==12)
        {
            System.out.println("True");
            
            System.out.println("a is equal to 12");
        }
        
        if(a == 12)
        System.out.println("Again! a is equal to 12");
        
        if(a==13)
        {
            System.out.println("A is equal to 13");
        }
        
        System.out.println("A is no 13");
        
    }
}

Generated URL:

Output:

True
a is equal to 12
Again! a is equal to 12
A is no 13
Report Bug