The definition of integer average is the highest smaller integer if average is floating point number. Also the condition if that they can not use any typecasting or any datatype other than int.

Example:

a = 4, b = 5, avg = 4

a = 4, b = 6, avg = 5

a = -4, b = -6, avg = -5

a = 4, b = -5, avg = -1

a = -4, b = -5, avg = -5