Horje
subtract two variables in java Code Example
subtract two variables in java
public class Subtraction{
  	//simple subtraction method in Java
	public static void main(String args[]){
    	int x = 3; // initializing first variable with a value
      	int y = 1; // initializing second variable
      	
      	int answer = x - y; // new variable which is subtracting two variables x and y
      	
      	System.out.println( x + " - " + y + " = " + answer );
      	// printing the answer of variables on the console
    }
}




Java

Related
spring yml property boolean Code Example spring yml property boolean Code Example
minecraft fabric client message Code Example minecraft fabric client message Code Example
converting temperature from fahrenheit to celsius Code Example converting temperature from fahrenheit to celsius Code Example
how to change the value of an arraylist in java Code Example how to change the value of an arraylist in java Code Example
comment calculer le temps d'execution d'un programme en java Code Example comment calculer le temps d'execution d'un programme en java Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7