SHARE
TWEET

Untitled

a guest Aug 14th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class nestedif
  2. {
  3. public static void main(String[] arg)
  4. {
  5. int a=5,b=3,c=4;
  6. if(a>b)
  7. {
  8.  if(a>c)
  9.  {
  10.    System.out.println("a is large number");
  11.   }
  12.   else
  13.   {
  14.     System.out.println("c is large number");
  15.   }
  16. }
  17. else
  18. {
  19.  if(b>c)
  20.  {
  21.    System.out.println("b is large");
  22.   }
  23.   else
  24.   {
  25.      System.out.print("c is larger");
  26.    }
  27. }
  28. }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top