import java.util.*;
import java.lang.*;
import java.io.*;
import java.lang.Math.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        //System.out.println("Hello world!");
        
        
        /* Scanner scn = new Scanner(System.in);

        int a = scn.nextInt();
    
        if (a> 0 && a%2 == 0) {
            System.out.println(0);
            
        } else {
            System.out.println(1);
        }
        */
        
        
        //------------------------------
        
        
        /*Scanner scn = new Scanner(System.in);

        int a = scn.nextInt();
        int b = scn.nextInt();
        int c = scn.nextInt();

        int d = 180;

        if ((a+b+c) == 180) {
            System.out.println("1");
        } else {
            System.out.println("0");
        }*/
        
        //-----------------------------
        
        /*Scanner scn = new Scanner(System.in);

        int A = scn.nextInt();
        
        if (A>0) {
            System.out.println("1");
        	
            } 

        else if (A<0){
            System.out.println("-1");   

            }

    	else {
            System.out.println("0");
            
            }*/
            
            
        //------------------------------
        
          /*Scanner scn = new Scanner(System.in);

        int a = 5;
        int n = scn.nextInt();


        if (n % a == 0) {
            System.out.println("Divisible by 5");
        	} 

	    else {
            System.out.println("Not divisible by 5");
            
            }*/
            
    
        // ------------------------------
        
        
       /* Scanner scn = new Scanner(System.in);

        int N = scn.nextInt();
            
            
        if (N > 18 ) {
            System.out.println("N is Greater than 18");
        	} 


	     if (N < 18 ){
            System.out.println("N is smaller than 18");
            
            }
            
        if (N == 18){
            System.out.println("N is equal to 18");
            
            } */
        
        
        //------------------------------
        
        
         /* Scanner scn = new Scanner(System.in);

        int n = scn.nextInt();
        int n1 = scn.nextInt();
        
        if (n > n1) {

            System.out.println(n);
            } 
            
            if (n1 > n) {
            System.out.println(n1);
            
        }*/
        
        
        //------------------------------
        
        
        /*Scanner scn = new Scanner(System.in);

        String name = scn.nextLine();
        int yos = scn.nextInt();

        if (yos>5) {
        
        System.out.println("Yes " + name + " will receive bonus.");
        }

        else if (yos<5) {

        System.out.println("No " + name + " will not receive bonus.");
        }
        
        else {
            System.out.println("");
        }*/
        
        
        //------------------------------
        
        
     /* float a = 7.3f;

        if(a == 7.3f)
        System.out.print("Hi");

        else
        System.out.print("Know Program");*/
        
    /*  
    
    
        //------------------------------
        
        
        /*Given temperature of person, analyse the situation of person and give him advice.
        Situations and advice related with temperature are :
        1. temp is in range of [85.0 to 91.0] then advice is "Serious Hypothermia".
        2. temp is in range of (91.0 to 95.0) then advice is "Mild Hypothermia".
        3. temp is in range of [95.0 to 98.0] then advice is "Normal Temperature".
        4. temp if in range of (98.0 to 100.0] then advice is "Mild Fever".
        5. temp if in range of (100.0 to 105.0] then advice is "High Fever".
        
        
        Scanner scn = new Scanner(System.in);

        double T_in = scn.nextDouble();

        double Temp = T_in;

        if (Temp >=85.0 && Temp <=105.0) {
            
            System.out.print("Correct Input Value Entered.");
            System.out.println("");
            System.out.println("Below are the findings results: ");
            
                }    
                    
                if (Temp>=85.0 && Temp<=91.0) {
                        System.out.print(Temp +
                            " is Serious Hypothermia");
                        }
                        
                    else if (Temp>=91.0 && Temp<95.0) {
                        System.out.println(
                            "Mild Hypothermia");
                        }
                        
                    else if (Temp>=95.0 && Temp<=98.0) {
                        System.out.println(
                            "Normal Temperature");
                        }
            
                    else if (Temp>98.0 && Temp<=100.00) {
                        System.out.println(
                            "Mild Fever");
                        }
                        
                    else if (Temp>100.0 && Temp<=105.00) {
                        System.out.println(
                            "High Fever");
                        }
         
        else //(Temp <85.00 || Temp >105.00) 
                                            {
                System.out.println("Incorrect Input Value");
                System.out.println("Input Temperature is beyond human body to sustain life or remain alive");
               }*/
        
        
        //------------------------------     
             
             
        //      Scanner scn = new Scanner(System.in);

        // int a = scn.nextInt();
        // int b = scn.nextInt();
        // int c = scn.nextInt();

        // if (a>=b & b>=c) {
        //     System.out.println(a);
            
        //         if (b>=a & a>=c) {
        //                 System.out.println(b);
        //                          }
                                 
        //         else if (c>=b & c>=a) {
        //                 System.out.println(b);            
        //                               }
        // }
        // else {
        //      System.out.println(c);
        //      }
        
        
        //------------------------------
        
        
            /*
            Scanner scn = new Scanner(System.in);

            int a = scn.nextInt();
            int b = scn.nextInt();
            int c = scn.nextInt();

             if (a>=b && a>=c)
                {
                System.out.println(a);
                } 
                
            else if (b>=c && b<=a)
                {
                System.out.println(b);
                } 
                
            else{
                System.out.println(c);
                }*/
        
        /*Scanner scn = new Scanner(System.in);
        System.out.println("Please input 3 integers: ");
        int x = scn.nextInt();
        int y = scn.nextInt();
        int z = scn.nextInt();
        int b = scn.nextInt();
        int max = Math.max(b,(Math.max(z,(Math.max(x),y))));
        System.out.println(x + " " + y + " "+ z + " " + b);
        System.out.println("The max of three is: " + max);*/
        
        
        //------------------------------
        

  /*      Scanner scn = new Scanner(System.in);

        long a = scn.nextLong();
        long b = scn.nextLong();
        long c = scn.nextLong();

        
        // if (a>=0 && a<=60 && b>=0 && b<=60 && c>=0 && c<=60)
        //    {
        //    System.out.println("Values entered + "f" + all three sides are correct");
        
        if (a==b && b==c)
            {
            System.out.println("equilateral");
            }
        
        else if (a==b || b==c || a==c)
            {
            System.out.println("isosceles");
            }

        else {
            System.out.println("scalene");
            }*/
            
        // }
        
      //  else ((a+b+c)>180) || (a+b+c)<180)) {
        //    System.out.println("The addition of all three sides is not equal to the equilateral triangle");
          //  }
          
          
        //------------------------------
        
        
        //Given age of a person, Categorise it based on age.
        //Category is given below :
        //if age is in range of 0 to 12 then category is "Child",
        //Otherwise if age is in range of 13 to 19 then category is "Teenager",
        //Otherwise if age is in range of 20 to 40 then category is "Young",
        //Otherwise if age is in range of 41 to 60 then category is "Middle-Aged",
        //Otherwise if age is more than 60 than category is "Senior-Citizen"
        
        /*Scanner scn = new Scanner(System.in);

        double a = scn.nextDouble();
        
        if (a>=0 && a<=150) {
            
            
        if (a>=0 && a<=12.99){
            System.out.println("Child");
            }
            
        else if (a>=13 && a<=19.99){
                System.out.println("Teenager");
            }
            
        else if (a>=20 && a<=40.99){
                System.out.println("Young");
            }
            
        else if (a>=41 && a<=60.99){
                System.out.println("Middle-Aged");
            }
            
         else { 
             System.out.println("Senior-Citizen");
            }
        }*/
        
        
        //------------------------------
        
        
  /*       Scanner scn = new Scanner(System.in);

        long a = scn.nextLong();
        
                 
        if (a>0 && a%2 != 0){
                System.out.println("Odd-Positive");

        else if (a<0 && a%2 != 0){
                System.out.println("Odd-Negative");
            }
            
        else if (a>0 && a%2 == 0){
                System.out.println("Even-Positive");
            }
        
        else if (a<0 && a%2 = 0){
                System.out.println("Even-Negative");
            }
            
        }*/
        
        
        //------------------------------
   /*     
        
        Scanner scn = new Scanner(System.in);
        long a = scn.nextLong();
        
        System.out.println(a + " is the input value.");
        
        if (a>0 && a%2 != 0){
                System.out.println("The number is an Odd-Positive");
            }

        if (a<0 && a%2 != 0){
                System.out.println("The number is an Odd-Negative");
            }
            
        else if (a>0 && a%2 == 0){
                System.out.println("The number is an Even-Positive");
            }
        
        else if (a<0 && a%2 == 0){
                System.out.println("The number is an Even-Negative");
            }*/
            
            
        //------------------------------
        
            
/*            Scanner scn = new Scanner(System.in);
    
            {
            int n = scn.nextInt();
    
             if (n%3 == 0 && n%5 == 0) {
                 System.out.println("FizzBuzz");
                }    
    
            else if (n%3 == 0 && n%5 != 0)
                {
                System.out.println("Fizz");
                }
            
            else if (n%5 == 0 && n%3 != 0) 
                {
                System.out.println("Buzz");
                }
             
            else
                {
                System.out.println(" ");
                }
            }   */ 


        //------------------------------
        
        
/*
            Scanner scn = new Scanner(System.in);
            
            int M = scn.nextInt();
            
            if (M>=0 && M<=100) {
                
            if(M>=50 && M<=80) {
                System.out.println("Pass" + " B");
                }
             
            else if (M>81 && M<=100) {
                System.out.println("Pass" + " A"); 
                
               }
            }
            
            else {
                System.out.println("FAIL");
            }    
*/
        
        
        //------------------------------
        
        Scanner scn = new Scanner(System.in);

            int N = scn.nextInt();
            
            System.out.println("N");

            if (N>=10 && N<=20) {
            
            System.out.println("Please enter another number: " );
            int M = scn.nextInt();
            }

            System.out.println(N + M);

            else if ((N + M) >=100 ) {
            System.out.println("That is a large sum!"):
            }
        
        
    }   
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: