Program For Smallest Number

 public class Sn{
      public static void main(String args[]){
            int num1=567;
             int num2=324;
            if(num1<num2){
       System.out.print("smallest number"+num1);
            }else{             System.out.print("smallest 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...