Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute Java Online

public class HelloWorld{

     public static void main(String []args){
        System.out.println("Hello World");
        int num1 = 10;
         int num2 = 90;
          int num3 = 100;
          if(num1>num2 && num1 > num3 ){
           System.out.println("largest number is:"+num1);  
          }
          else if(num2 > num3 && num2 > num1 ){
           System.out.println("largest number is:"+num2);
           }
          
           else if(num3 > num1 && num3 > num2){
           System.out.println("largest number is:"+num3);
           }
           else{
               System.out.println("no.are equal");
           }
     } 
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.