Answer:
To return average in Decimal we will use float datatype instead of double.
Step-by-step explanation:
int test1 = scan.nextInt();
int test2 = scan.nextInt();
float average = (test1 + test2 )/2;
System.out.println("Answer: " + average);
9.4m questions
12.1m answers