
import java.util.Scanner;

class Sep10 {
	public static void main(String[] args) {

		Scanner kb = new Scanner(System.in);

		/* General form of conditional expession 

			if (boolean_expression) {
				// any code you like
			}

			a boolean expression is an expression
			that evaluates to either true or false

			a conditional statement says that if some
			boolean expression is true then execute the
			block of code; otherwise do not execute the
			block of code.

		*/

		if (true) {
			System.out.println("This will always print");
		}

		if (false) {
			System.out.println("This will never print");
		}

		boolean printHello = true;

		if (printHello) {
			System.out.println("hello");
		}

		printHello = false;

		if (printHello) {
			System.out.println("hello again");
		}

		System.out.print("Enter integer: ");
		int value = kb.nextInt();

		if (value == 1) {
			System.out.println("Value is one");
		}

		// other relational operators: !=, <, >, <=, >=

		if (value % 2 == 0) {
			System.out.println("Value is even");
		}
	}
}
