With JAVA how to multiplication and division
In Java
* mean multiplication and
/ mean division
Class MultiplyDivide {
public static void main (String args[]){
int i = 10;
int j = 2;
System.out.printIn("i is " + i);
System.out.printIn("i is " + j);
int k= i/j;
System.out.printIn("i/j is " + k);
int k= i*j;
System.out.printIn("i*j is " + k);
}
}
RESULT is
i is 10
j is 2
i/j is 5
i*j is 20
No comments:
Post a Comment