Page 92 - CA_Blue( J )_Class9
P. 92
Input: You will get the following output:
Multiplication (*) Operator
The multiplication (*) operator is used for multiplying two values or operands either of integer literals or real
literals. The result may be positive or negative depending on the values. For example,
If m=10, n=5 then, -m*n = -10*5 = -50
If m = 14, n= 6 then, m*n = 14 * 6 = 84
If i = -20.5, j = -10 then, i*j = -20.5 * -10 = 205.0
Program 7 Example of multiplication (*) oprator.
1 class multiplication_operator
2 {
3 public static void main(int a, int b)
4 {
5 int c=a*b;
6 System.out.println("Result of Multiplication : " + c);
7 }
8 }
Input: You will get the following output:
Division (/) Operator
The division (/) operator is used for finding the quotient between two values either of integer literal or real literal.
The result may be positive or negative depending on the values.
90 Touchpad Computer Applications-IX

