Enter 0 to exit the loop Enter a number:Enter a number:Enter a number:The average was: 4.0