here the conversion happens by the compiler itself . The numbers that are entered are integer and average is float right here float is above int in the hirerachy level we should have got float actually
Implicit type conversion
it got cleared i had assumed something wrong