2. JAVA Program to do Multiplication and Divison of Two Numbers.
How does this program work?
- In this programme you will learn about how to do Multiplication and Divison of two numbers.
- Initially you will learn how to scan two numbers and store them in 2variables.
- And then by using the given logic you will get outputs in the form of.
Here is the code
//Multiplication and Division of two numbers
public class muldiv{
public static void main(String args[] )
{
int a=4,b=3,multiplication,division;
/* Multiplying two numbers */
multiplication = a * b;/* Dividing two numbers */
division= a / b;System .out.println ("Multiplication and Division of two numbers:");
System.out.println ("Multiplication of Two numbers ="+multiplication);
System.out.println("Division of Two numbers =" +division );
}
}