Arithmetic with int and double
The types of the two operands decide an arithmetic operation, so two ints give an int and 7 / 2 is 3 with remainder 7 % 2 equal to 1, while one double makes the whole operation decimal.
From AP Computer Science A.
The types of the two operands decide an arithmetic operation, so two ints give an int and 7 / 2 is 3 with remainder 7 % 2 equal to 1, while one double makes the whole operation decimal.
From AP Computer Science A.