Advertisement
virtualideaz

If Statement

Oct 22nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. //
  2. //this is a decision control statement example
  3. //
  4. public class DecisionControlStatements {
  5.     public static void main(String [] args) {
  6.         //the if statement
  7.        
  8.         int a = 10;
  9.        
  10.         if (a <= 10)
  11.         {
  12.             System.out.println("given value : " + a);
  13.             System.out.println("The given value is less than or equal to 10");
  14.         }
  15.     }
  16. }
  17.  
  18. --copy until here--
  19.  
  20. OUTPUT:
  21.  
  22. given value : 10
  23. The given value is less than or equal to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement