JAVA program add two numbers.

 package add2num;

public class ADD2num {

   public static void main(String[] args) {

         int first=123;

        int second=321;

        int sum=0;

        sum=first+second;

      

        System.out.println("Enter of these numbers:" +sum);

    }

    

}

OUTPUT


Enter of these numbers:444

No comments:

Post a Comment