Answers for "add two numbers in java"

0

add two numbers in java

public class AddTwoNumber
{
   public static void main(String[] args)
   {   
      int number1 = 12;
      int number2 = 3;
      int sum = number1 + number2;

      System.out.println("Sum of "+number1+" and "+"number2 is : "+sum);
   }
}
Posted by: Guest on April-03-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language