This is a official website of instagram page @coding_planet

Saturday, November 10, 2018

Add Two Numbers (Java #1)

  Java  Program To Add Two Numbers 


Input:


public class AddTwoIntegers {

    public static void main(String[] args) {
        
        int first = 15;
         int second = 10;

        int sum = first + second;

        System.out.println("The sum is: " + sum);
    }
}

Output:



Enter Two Numbers: 15 10
The Sum Is: 25

Share:

Related Posts:

0 Comments:

Post a Comment

About

Blogger templates

3/recent/post-list