Program For Largest Number

 public class Ln{
     public static void main(String args[]){
            int num1=678;
            int num2=234;
            if(num1>num2){          
        System.out.print("largest number"+num1);
              }else{
        System.out.print("largest number"+num2);
       }}
             }

No comments:

Post a Comment

How to install java   How to add two numbers in java How to compile the program How to subtract two numbers in java How to multiply two numb...