Java Programming

  1. Java Program: add 2 integer
    class Add2Integer {
    
      public static void main(String[] args) {
                                          
      System.out.println("Enter two numbers");
      int first = 10;
      int second = 20;
                        
        System.out.println(first + " " + second);
                        
        System.out.println("The sum is: " + sum);
        int sum = first + second;
        }
      }
    
  2. Output:
    
    Enter two numbers
    10 20
    The sum is: 30
                  

Others Programming Language

article

programming C

Muktarul Hossain
article

C++

Muktarul Hossain
article

Python

Muktarul Hossain
article

Website Design

Muktarul Hossain