Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

add two variables in Java

public class sum{
	Public static void main(String args[]){
    	int x=5;
      	int y=10;
      	int sum= x+y;
      System.out.println(sum);
    }
}
 
PREVIOUS NEXT
Tagged: #add #variables #Java
ADD COMMENT
Topic
Name
1+5 =