PCEP Data Types, Variables, Basic I/O and Operators • Set 13
PCEP Data Types, Variables, Basic I/O and Operators Practice Test 13 — 15 questions with explanations. Free, no signup.
A developer is writing a program to calculate the average of three test scores. The current code reads scores as integers: a=int(input()); b=int(input()); c=int(input()); avg = (a+b+c)/3; print(avg). For scores 7, 8, and 9, the output is 8.0, but the requirement is to print the integer average (8), rounded to the nearest whole number. Which modification should the developer make to meet the requirement?