Exercise 8

Could someone please send me the written code for how to do this? Thank you!

1.Set the int variable myNumber equal to the product of two numbers.\

public class Arithmetic {
public static void main(String args) {

	int myNumber= ;
	System.out.println(myNumber);

}

}

int myNumber = 2 * 8;

(the “product” of something is a number * (* is times) another number)

1 Like

that helps alot hd hdl dhbd dh dh dhd dh hd hd hd hd dhd dh ddh dh dh dh dh ddh d

public class Arithmetic {
public static void main(String args) {

	int myNumber =30*2;
	System.out.println(myNumber);

}

}