Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement