Decision Control Example in Java


Here is the simple program for printing decision control in Java.

Source Code

import java.io.*;
import java.util.Scanner;
class ifcon
{
  public static void main(String args[])
  {
    int i=5;
    
    if(i>=10)
    {
      System.out.print("\nHi I am Greater Than Ten");
    }
    
    System.out.print("\nProgram End");	
  }
}
To download raw file Click Here

Output

   
Program End


Learn All in Tamil © Designed & Developed By Tutor Joes