How to subtract two numbers in java.
class AddExample
{
public
static void main(String args[])
{
int
a=5,b=6;
System.out.println(“Subtract= ”+(b-a));
}
}
OUTPUT :
Subtract= 1
No comments:
Post a Comment