Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

adding 2 variable in java

public class sum{
	Public static void main(String args[]){
    	int x=5;
      	int y=10;
      	int sum= x+y;
      System.out.println("addition of x and y= "+sum);
    }
}
 
PREVIOUS NEXT
Tagged: #adding #variable #java
ADD COMMENT
Topic
Name
7+1 =