Answer:
To return average in Decimal we will use float datatype instead of double.
Explanation:
int test1 = scan.nextInt();
int test2 = scan.nextInt();
float average = (test1 + test2 )/2;
System.out.println("Answer: " + average);
An application interface or user interface ,is the set of features an application provides so that user may supply input to and recieve output from,the program.
That will be Throwaway