Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- //this is a decision control statement example
- //
- public class DecisionControlStatements {
- public static void main(String [] args) {
- //the if statement
- int a = 10;
- if (a <= 10)
- {
- System.out.println("given value : " + a);
- System.out.println("The given value is less than or equal to 10");
- }
- }
- }
- --copy until here--
- OUTPUT:
- given value : 10
- The given value is less than or equal to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement