If Test

Question

ADDQUESTION

Solution

class IfTest {
    static public void main(String args[]) {
        int x=4;
        if (x > 3)
            System.out.println("greater than 3");
        else
            System.out.println("smaller than 3");
    }
}
Run this
Comments by Disqus