Write a Java program to print the sum of two numbers

Program

public class Main {
	
public static void main(String args[]){
	
	System.out.println("Sum of two numbers:"+(12+12));
	}
}

 

Output:

Sum of two numbers: 24

Programs