How to subtract two numbers using third variable in java.
class SubtractExample
{
public
static void main(String args[])
{
int
a=15,b=6,subtract;
subtract=a-b;
System.out.println(“Subtraction
= ”+subtract);
}
}
OUTPUT :
Subtraction
= 9
No comments:
Post a Comment