Monday, 22 September 2014

IFElseDemo2


public class IFElseDemo2 {
   
    public static void main (String args[])
    {
       
        int a = 100 , b=50;
       
        if (a >b )
        {
            System.out.println (" A is greater than B");
           
        }
        else
        {
            System.out.println("B is greater than A");
        }
        System.out.println("Now I am out side if -else , in any case i get print");
    }
}

No comments:

Post a Comment