How to multiply two numbers using third variable in java.
class MultiplyExample
{
public
static void main(String args[])
{
int
a=5,b=6,multiply;
multiply
=a*b;
System.out.println(“Multiply
= ”+ multiply);
}
}
OUTPUT :
Multiply = 30
No comments:
Post a Comment