The following code does not work as intended. It is meant to input two test grades and return the average in decimal format: int test1 = scan. nextInt (); int test2 = scan. nextInt (); double average = (test1 + test2) / 2; System. out. println ("Answer: " + average);
+2
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “The following code does not work as intended. It is meant to input two test grades and return the average in decimal format: int test1 = ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » The following code does not work as intended. It is meant to input two test grades and return the average in decimal format: int test1 = scan. nextInt (); int test2 = scan. nextInt (); double average = (test1 + test2) / 2; System. out.