Q:

Java Program to Add Two Integers

0

Program to Add Two Integers.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.util.*;
import java.lang.*;
import java.io.*;

public class AddTwoIntegers
{
       public static void main(String[] args)
          {
              int first = 10;
              int second = 20;
              int sum = first + second;
              System.out.println("The sum is: " + sum);
          }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now